fd
This commit is contained in:
parent
36d5277120
commit
4d9815210c
5 changed files with 10 additions and 90 deletions
|
@ -305,39 +305,6 @@ def monthly(v):
|
|||
return {"message": "Monthly coins granted"}
|
||||
|
||||
|
||||
# @app.get('/admin/sidebar')
|
||||
# @admin_level_required(3)
|
||||
# def get_sidebar(v):
|
||||
|
||||
# try:
|
||||
# with open(f'files/templates/sidebar_{SITE_NAME}.html', 'r', encoding="utf-8") as f: sidebar = f.read()
|
||||
# except:
|
||||
# sidebar = None
|
||||
|
||||
# return render_template('admin/sidebar.html', v=v, sidebar=sidebar)
|
||||
|
||||
|
||||
# @app.post('/admin/sidebar')
|
||||
# @limiter.limit("1/second;30/minute;200/hour;1000/day")
|
||||
# @admin_level_required(3)
|
||||
# def post_sidebar(v):
|
||||
|
||||
# text = request.values.get('sidebar', '').strip()
|
||||
|
||||
# with open(f'files/templates/sidebar_{SITE_NAME}.html', 'w+', encoding="utf-8") as f: f.write(text)
|
||||
|
||||
# with open(f'files/templates/sidebar_{SITE_NAME}.html', 'r', encoding="utf-8") as f: sidebar = f.read()
|
||||
|
||||
# ma = ModAction(
|
||||
# kind="change_sidebar",
|
||||
# user_id=v.id,
|
||||
# )
|
||||
# g.db.add(ma)
|
||||
|
||||
# g.db.commit()
|
||||
|
||||
# return render_template('admin/sidebar.html', v=v, sidebar=sidebar, msg='Sidebar edited successfully!')
|
||||
|
||||
@app.get("/admin/shadowbanned")
|
||||
@auth_required
|
||||
def shadowbanned(v):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue