block_account unblock fix

This commit is contained in:
Kaan Soral
2024-10-01 22:12:46 +03:00
parent 72db882ffe
commit d18181367d
2 changed files with 2 additions and 1 deletions
File diff suppressed because one or more lines are too long
+1
View File
@@ -761,6 +761,7 @@ def block_account(name,days,reason="",toggle=False):
if toggle and gf(owner,"blocked_until") and owner.info.blocked_until>datetime.now(): days=-1
if days<=0:
owner.info.blocked_until=really_old
owner.banned=False
owner.put()
return "un-blocked %s"%owner.k()
else: