From 1969615a289f97898555ef9351cc2ea1dd3a4205 Mon Sep 17 00:00:00 2001 From: David Hoppenbrouwers Date: Mon, 10 Oct 2022 23:41:27 +0200 Subject: [PATCH] Fix user unban --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index a7acda1..20af56a 100644 --- a/main.py +++ b/main.py @@ -508,7 +508,7 @@ def admin_unban_user(user_id): return user try: - if db.set_user_ban(user_id, None): + if db.set_user_ban(user_id, 0): flash('Unbanned user', 'success') else: flash('Failed to unban user', 'error')