fix custom filters

master
justcool393 2022-11-06 22:50:45 -06:00
parent af696a2f9c
commit 771f1972aa
1 changed files with 2 additions and 2 deletions

View File

@ -298,11 +298,11 @@ def filters(v):
filters=request.values.get("filters")[:1000].strip()
if filters == v.custom_filter_list:
return render_template("settings_filters.html", v=v, error="You didn't change anything")
return render_template("settings_advanced.html", v=v, error="You didn't change anything")
v.custom_filter_list=filters
g.db.add(v)
return render_template("settings_filters.html", v=v, msg="Your custom filters have been updated.")
return render_template("settings_advanced.html", v=v, msg="Your custom filters have been updated.")
def set_color(v:User, attr:str, color:Optional[str]):