forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-01-28 05:30:20 +02:00
parent cb5c37cc77
commit aff7781a6c
2 changed files with 13 additions and 2 deletions

View File

@ -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)

View File

@ -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;