minor fixes

This commit is contained in:
pluja 2020-09-26 20:06:24 +02:00
parent fa7d7f4d79
commit d7027b7d75

View File

@ -182,6 +182,8 @@ def search():
@app.route('/<username>')
@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 = {