From c42cb538aa84b7c6ce96fab23a795a86867212e6 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 18 Jun 2022 02:35:27 +0200 Subject: [PATCH] add a button for PCM to print marseybux --- files/routes/admin.py | 10 ++++++++++ files/templates/admin/awards.html | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/files/routes/admin.py b/files/routes/admin.py index 7cc5affa8..d719db636 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -55,6 +55,16 @@ def give_monthly_marseybux_task(): return True + +@app.post('/kippy') +@admin_level_required(3) +def kippy(v): + kippy = g.db.get(User, KIPPY_ID) + kippy.procoins += 10000 + g.db.add(kippy) + g.db.commit() + return '10k marseycoins printed!' + @app.get('/admin/loggedin') @admin_level_required(2) def loggedin_list(v): diff --git a/files/templates/admin/awards.html b/files/templates/admin/awards.html index d62c8d19b..0e6ff1cde 100644 --- a/files/templates/admin/awards.html +++ b/files/templates/admin/awards.html @@ -61,4 +61,10 @@ + +

+	{% if SITE == 'pcmemes.net' and v.id == KIPPY_ID %}
+		
Print 10k Marseybux
+ {% endif %} + {% endblock %} \ No newline at end of file