From d7027b7d75cf1b7e28c2faf6665b0a7b364e0a3d Mon Sep 17 00:00:00 2001 From: pluja Date: Sat, 26 Sep 2020 20:06:24 +0200 Subject: [PATCH] minor fixes --- app/routes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index 544563b..a5bb65c 100644 --- a/app/routes.py +++ b/app/routes.py @@ -182,6 +182,8 @@ def search(): @app.route('/') @login_required def u(username): + if len(username.split("/")) > 1: + form = EmptyForm() avatarPath = "img/avatars/{}.png".format(str(random.randint(1,12))) user = getTwitterUserInfo(username) @@ -438,7 +440,7 @@ def settings(): t = datetime.datetime.utcnow() - u.last_seen s = t.total_seconds() m = s/60 - if m < 10: + if m < 25: active = active+1 instanceInfo = {