diff --git a/files/routes/awards.py b/files/routes/awards.py index 43b5e726d..f101a5f63 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -344,7 +344,8 @@ def award_post(pid, v): send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}") elif kind == "benefactor": author.patron = 1 - author.patron_utc += int(time.time()) + 2629746 + if author.patron_utc: author.patron_utc += 2629746 + else: author.patron_utc = int(time.time()) author.procoins += 2500 if author.discord_id: add_role(author, "1") if not v.has_badge(103): @@ -575,7 +576,8 @@ def award_comment(cid, v): send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}") elif kind == "benefactor": author.patron = 1 - author.patron_utc += int(time.time()) + 2629746 + if author.patron_utc: author.patron_utc += 2629746 + else: author.patron_utc = int(time.time()) author.procoins += 2500 if author.discord_id: add_role(author, "1") if not v.has_badge(103): diff --git a/files/templates/home.html b/files/templates/home.html index 99880ae11..ec4df7dbd 100644 --- a/files/templates/home.html +++ b/files/templates/home.html @@ -2,6 +2,14 @@ {% block desktopBanner %} +{% if v and v.id == AEVANN_ID %} + +{% endif %} + {% if v and environ.get("FP") %} {% if not v.fp %} {% endif %} -{% if v and v.id == AEVANN_ID %} - -{% endif %} {% endblock %} \ No newline at end of file diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index ff418efca..a8cfd1f49 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -206,7 +206,7 @@