fds
This commit is contained in:
parent
73bb3847c3
commit
74c459b71b
2 changed files with 3 additions and 3 deletions
|
@ -166,7 +166,7 @@ def remove_fake_admin(v, username):
|
|||
|
||||
|
||||
@app.post("/admin/monthly")
|
||||
@limiter.limit("1/day")
|
||||
#@limiter.limit("1/day")
|
||||
@admin_level_required(6)
|
||||
def monthly(v):
|
||||
if 'pcm' in request.host or (SITE_NAME == 'Drama' and v.id in [1,12,28,29,747,995,1480]) or ('rama' not in request.host and 'pcm' not in request.host):
|
||||
|
@ -179,7 +179,7 @@ def monthly(v):
|
|||
elif u.patron == 5 or u.patron == 8: procoins = 50000
|
||||
|
||||
u.procoins += procoins
|
||||
send_notification(NOTIFICATIONS_ACCOUNT, u, f"You were given {procoins} Marseybux!")
|
||||
send_notification(NOTIFICATIONS_ACCOUNT, u, f"You were given {procoins} Marseybux! You can use them to buy awards in the [shop](/shop).")
|
||||
g.db.add(u)
|
||||
|
||||
g.db.commit()
|
||||
|
|
|
@ -312,7 +312,7 @@ def gumroad(v):
|
|||
elif v.patron == 5 or v.patron == 8: procoins = 50000
|
||||
|
||||
v.procoins += procoins
|
||||
send_notification(NOTIFICATIONS_ACCOUNT, v, f"You were given {procoins} Marseybux!")
|
||||
send_notification(NOTIFICATIONS_ACCOUNT, v, f"You were given {procoins} Marseybux! You can use them to buy awards in the [shop](/shop).")
|
||||
g.db.add(v)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue