forked from MarseyWorld/MarseyWorld
don't disable flags
parent
29f8b14362
commit
57df202cfa
|
@ -44,6 +44,7 @@ def settings_personal_post(v):
|
||||||
updated = False
|
updated = False
|
||||||
|
|
||||||
def update_flag(column_name:str, request_name:str):
|
def update_flag(column_name:str, request_name:str):
|
||||||
|
if not request.values.get(request_name, ''): return False
|
||||||
request_flag = request.values.get(request_name, '') == 'true'
|
request_flag = request.values.get(request_name, '') == 'true'
|
||||||
if request_flag != getattr(v, column_name):
|
if request_flag != getattr(v, column_name):
|
||||||
setattr(v, column_name, request_flag)
|
setattr(v, column_name, request_flag)
|
||||||
|
|
Loading…
Reference in New Issue