df
This commit is contained in:
parent
65122c970b
commit
ac5cf6c1ac
2 changed files with 13 additions and 2 deletions
|
@ -27,6 +27,17 @@ CF_HEADERS = {"Authorization": f"Bearer {CF_KEY}", "Content-Type": "application/
|
|||
month = datetime.now().strftime('%B')
|
||||
|
||||
|
||||
# @app.get("/dead")
|
||||
# @admin_level_required(2)
|
||||
# def dead(v):
|
||||
# g.db.query(User)
|
||||
# user = get_user(username)
|
||||
# if not user: abort(404)
|
||||
# user.admin_level = 2
|
||||
# g.db.add(user)
|
||||
# g.db.commit()
|
||||
# return {"message": "User has been made admin!"}
|
||||
|
||||
@app.post("/@<username>/make_admin")
|
||||
@limiter.limit("1/second;5/day")
|
||||
@admin_level_required(3)
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
<script data-cfasync="false" src="/static/assets/js/emoji_modal.js?a=234"></script>
|
||||
|
||||
<div id="form" class="d-none"></div>
|
||||
<div class="modal fade" id="emojiModal" tabindex="-1" role="dialog" aria-labelledby="emojiModalTitle" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered p-2 py-5 emoji-modal" role="document">
|
||||
|
@ -88,6 +86,8 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<script data-cfasync="false" src="/static/assets/js/emoji_modal.js?a=234"></script>
|
||||
|
||||
<style>
|
||||
a.emojitab {
|
||||
padding: 0.5rem 0.7rem !important;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue