fix 500 error

master
Aevann 2024-10-21 22:41:23 +03:00
parent 0e7adabd08
commit 58f7affa77
1 changed files with 1 additions and 1 deletions

View File

@ -860,7 +860,7 @@ def settings_name_change(v):
v.username = new_name
if new_name.lower() == v.original_username.lower() or v.unban_utc >= 32500915200:
if new_name.lower() == v.original_username.lower() or (v.unban_utc and v.unban_utc >= 32500915200):
v.original_username = new_name
g.db.add(v)