fix unblocking (type error)

master
justcool393 2022-10-05 20:45:03 -07:00 committed by GitHub
parent dd950c96f6
commit a22c426310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ def block_sub(v, sub):
@auth_required @auth_required
def unblock_sub(v, sub): def unblock_sub(v, sub):
sub = get_sub_by_name(sub).name sub = get_sub_by_name(sub).name
if sub.name == "chudrama" and not v.can_see_chudrama: abort(403) if sub == "chudrama" and not v.can_see_chudrama: abort(403)
block = g.db.query(SubBlock).filter_by(user_id=v.id, sub=sub).one_or_none() block = g.db.query(SubBlock).filter_by(user_id=v.id, sub=sub).one_or_none()
if block: if block: