From 981ae9756262cc5d16ec7d2271fd9129140ffd37 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 29 Jul 2021 08:40:08 +0200 Subject: [PATCH] fdfd --- drama/routes/users.py | 3 +++ drama/templates/followers - Copy.html | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 drama/templates/followers - Copy.html diff --git a/drama/routes/users.py b/drama/routes/users.py index a30174cea..bcf41bc60 100644 --- a/drama/routes/users.py +++ b/drama/routes/users.py @@ -289,6 +289,9 @@ def u_username(username, v=None): v.dramacoins -= 500 v.rent_utc = int(time.time()) g.db.add(v) + u.dramacoins += 500 + g.db.add(u) + send_notification(1046, u, f"@{v.username} has paid rent!") paidrent = True if not paidrent: diff --git a/drama/templates/followers - Copy.html b/drama/templates/followers - Copy.html new file mode 100644 index 000000000..12da05893 --- /dev/null +++ b/drama/templates/followers - Copy.html @@ -0,0 +1,21 @@ +{% extends "default.html" %} +{% block content %} +

+
@{{u.username}}'s followers
+

+
+
+	
+		
+		
+	
+
+{% for user in users %}
+	
+		
+		
+	
+{% endfor %}
+
#Name
{{users.index(user)+1}}{{user.username}}
+ +{% endblock %} \ No newline at end of file