forked from MarseyWorld/MarseyWorld
fix 500 error
parent
63710ecef6
commit
d7a2226fdb
|
@ -177,10 +177,7 @@ def modmail_listing(v):
|
|||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
||||
@admin_level_required(PERMS['VIEW_MODMAIL'])
|
||||
def notifications_modmail(v):
|
||||
if v:
|
||||
listing, total, page = modmail_listing(v)
|
||||
else:
|
||||
listing, total, page = None, None, None
|
||||
listing, total, page = modmail_listing(v)
|
||||
|
||||
if v.client: return {"data":[x.json for x in listing]}
|
||||
|
||||
|
|
|
@ -281,7 +281,10 @@ def api(v):
|
|||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
|
||||
@auth_desired
|
||||
def contact(v):
|
||||
listing, total, page = modmail_listing(v)
|
||||
if v:
|
||||
listing, total, page = modmail_listing(v)
|
||||
else:
|
||||
listing, total, page = None, None, None
|
||||
return render_template("contact.html",
|
||||
v=v,
|
||||
listing=listing,
|
||||
|
|
Loading…
Reference in New Issue