forked from MarseyWorld/MarseyWorld
add a button for PCM to print marseybux
parent
ecf37a58f1
commit
c42cb538aa
|
@ -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):
|
||||
|
|
|
@ -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 %}
|
Loading…
Reference in New Issue