forked from MarseyWorld/MarseyWorld
fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/6379083#context
parent
21f08b9826
commit
4da8250ad2
|
@ -404,6 +404,9 @@ def settings_personal_post(v):
|
|||
def filters(v):
|
||||
filters = request.values.get("filters", "").strip()
|
||||
|
||||
if filters in {"", "None"}:
|
||||
filters = None
|
||||
|
||||
if filters == v.custom_filter_list:
|
||||
abort(400, "You didn't change anything!")
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
alter table users alter column custom_filter_list drop default;
|
||||
update users set custom_filter_list=null where custom_filter_list = '';
|
||||
update users set custom_filter_list=null where custom_filter_list = 'None';
|
Loading…
Reference in New Issue