vcvc
This commit is contained in:
parent
ca04daab23
commit
b8fdd00e89
2 changed files with 2 additions and 2 deletions
|
@ -471,7 +471,7 @@ def transfers(v):
|
|||
|
||||
page = int(request.values.get("page", 1))
|
||||
|
||||
comments = g.db.query(Comment).filter(Comment.author_id == NOTIFICATIONS_ID, Comment.parent_submission == None, Comment.distinguish_level == 6, Comment.body_html.like("%</a> has transferred %"), Comment.created_utc == 0).offset(25 * (page - 1)).limit(26).all()
|
||||
comments = g.db.query(Comment).filter(Comment.author_id == NOTIFICATIONS_ID, Comment.parent_submission == None, Comment.distinguish_level == 6, Comment.body_html.like("%</a> has transferred %"), Comment.created_utc == 0).order_by(Comment.id.desc()).offset(25 * (page - 1)).limit(26).all()
|
||||
|
||||
next_exists = len(comments) > 25
|
||||
comments = comments[:25]
|
||||
|
|
|
@ -280,7 +280,7 @@ def transfer_bux(v, username):
|
|||
if amount < 100: return {"error": "You have to gift at least 100 marseybux."}, 400
|
||||
|
||||
if TAX_RECEIVER_ID:
|
||||
log_message = f"[@{v.username}](/id/{v.id}) has transferred {amount} marseybux to [@{receiver.username}]({receiver.id})"
|
||||
log_message = f"[@{v.username}](/id/{v.id}) has transferred {amount} Marseybux to [@{receiver.username}]({receiver.id})"
|
||||
send_repeatable_notification(TAX_RECEIVER_ID, log_message)
|
||||
|
||||
receiver.procoins += amount
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue