add a button for PCM to print marseybux

master
Aevann1 2022-06-18 02:35:27 +02:00
parent ecf37a58f1
commit c42cb538aa
2 changed files with 16 additions and 0 deletions

View File

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

View File

@ -61,4 +61,10 @@
<input autocomplete="off" class="btn btn-primary mt-3" type="submit" value="Grant Awards">
</form>
<pre></pre>
{% if SITE == 'pcmemes.net' and v.id == KIPPY_ID %}
<div><a class="btn btn-danger" role="button" onclick="post_toast(this,'/kippy')">Print 10k Marseybux</a></div>
{% endif %}
{% endblock %}