From e2a3ca00aa40b50c1db9fc144bcfffd6399c91a0 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 31 Aug 2021 23:20:09 +0200 Subject: [PATCH] gffg --- files/routes/users.py | 6 ++++-- files/templates/userpage_private.html | 12 ++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index 0e4d10554..003d413a1 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -39,9 +39,9 @@ def pay_rent(v): @auth_required def steal(v): if int(time.time()) - v.created_utc > 604800: - return "You must have an account older than 1 week in order to steal." + return "You must have an account older than 1 week in order to stealing." if v.coins > 200: - return "You must have more than 200 coins in order to steal." + return "You must have more than 200 coins in order to attempt stealing." if random.randint(1, 10) < 8: v.coins += 2000 v.steal_utc = int(time.time()) @@ -52,9 +52,11 @@ def steal(v): send_notification(NOTIFICATIONS_ACCOUNT, u, f"@{v.username} has stolen 2000 dramacoins from you!") else: v.fail_utc = int(time.time()) + v.ban(days=1, reason="Failed thief") g.db.add(v) u = get_account(253) send_notification(NOTIFICATIONS_ACCOUNT, u, f"@{v.username} has failed to steal coins from you and has been banned for 1 day!") + return "", 204 @app.get("/rentoids") diff --git a/files/templates/userpage_private.html b/files/templates/userpage_private.html index c636b36e6..b691ea510 100644 --- a/files/templates/userpage_private.html +++ b/files/templates/userpage_private.html @@ -12,8 +12,16 @@

This account is private

This user has enabled private mode to cloak their posting history.

{% if u.id == 253 and 'rdrama' in request.host %} - Pay Rent to View (500 coins) - Attempt to steal coins (30% chance of being banned for 1 day, 70% chance of stealing 2000 coins" + Pay rent to view profile (500 coins) +

+				Attempt to steal coins"
+				
30% chance of being banned for 1 day, 70% chance of stealing 2000 coins
+
+
+
+
+
+				
{% endif %}