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 %}