From f1de6cbe5875cdf4dcebcf2c3a77e1f1a9cbf836 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 24 May 2023 13:45:59 +0300 Subject: [PATCH] rename tooltip dismissal to hopefully fix this https://rdrama.net/post/172725/no-decline-no-no-no-no --- files/routes/static.py | 2 +- files/templates/home.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index c586d9c0c..b146b53a8 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -362,7 +362,7 @@ def mobile_app(v:Optional[User]): @limiter.limit('1/second', scope=rpath) @limiter.limit(DEFAULT_RATELIMIT) def dismiss_mobile_tip(): - session["tooltip_last_dismissed"] = int(time.time()) + session["tooltip_dismissed"] = int(time.time()) return "", 204 @app.get("/transfers/") diff --git a/files/templates/home.html b/files/templates/home.html index 2eb793d35..6c32fefe2 100644 --- a/files/templates/home.html +++ b/files/templates/home.html @@ -163,7 +163,7 @@ {% endif %} -{% if request.path == '/' and g.browser != 'webview' and time.time() > session.get('tooltip_last_dismissed',0)+86400*30 %} +{% if request.path == '/' and g.browser != 'webview' and time.time() > session.get('tooltip_dismissed',0)+86400*30 %}