forked from MarseyWorld/MarseyWorld
fix wrong code
parent
2676436493
commit
fd9398f049
|
@ -969,8 +969,8 @@ def process_settings_plaintext(value, current, length, default_value):
|
||||||
if not value:
|
if not value:
|
||||||
return default_value
|
return default_value
|
||||||
|
|
||||||
if len(value) > 100:
|
if len(value) > length:
|
||||||
abort(400, "The value you entered exceeds the character limit (100 characters)")
|
abort(400, f"The value you entered exceeds the character limit ({length} characters)")
|
||||||
|
|
||||||
if value == current:
|
if value == current:
|
||||||
abort(400, "You didn't change anything!")
|
abort(400, "You didn't change anything!")
|
||||||
|
|
Loading…
Reference in New Issue