forked from rDrama/rDrama
fix accidentially deleted endpoint :derp:
parent
c84c508962
commit
1e2ef23344
|
@ -338,6 +338,18 @@ def badges(v):
|
||||||
badges, counts = badge_list(SITE, v.admin_level >= PERMS['VIEW_PATRONS'])
|
badges, counts = badge_list(SITE, v.admin_level >= PERMS['VIEW_PATRONS'])
|
||||||
return render_template("badges.html", v=v, badges=badges, counts=counts)
|
return render_template("badges.html", v=v, badges=badges, counts=counts)
|
||||||
|
|
||||||
|
@app.get("/blocks")
|
||||||
|
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
|
||||||
|
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
||||||
|
@auth_required
|
||||||
|
def blocks(v):
|
||||||
|
blocks = g.db.query(UserBlock).options(
|
||||||
|
joinedload(UserBlock.user),
|
||||||
|
joinedload(UserBlock.target),
|
||||||
|
).order_by(UserBlock.created_utc.desc())
|
||||||
|
|
||||||
|
return render_template("blocks.html", v=v, blocks=blocks)
|
||||||
|
|
||||||
@app.get("/notification_mutes")
|
@app.get("/notification_mutes")
|
||||||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
|
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
|
||||||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
||||||
|
|
Loading…
Reference in New Issue