minor fixes
This commit is contained in:
parent
fa7d7f4d79
commit
d7027b7d75
@ -182,6 +182,8 @@ def search():
|
|||||||
@app.route('/<username>')
|
@app.route('/<username>')
|
||||||
@login_required
|
@login_required
|
||||||
def u(username):
|
def u(username):
|
||||||
|
if len(username.split("/")) > 1:
|
||||||
|
|
||||||
form = EmptyForm()
|
form = EmptyForm()
|
||||||
avatarPath = "img/avatars/{}.png".format(str(random.randint(1,12)))
|
avatarPath = "img/avatars/{}.png".format(str(random.randint(1,12)))
|
||||||
user = getTwitterUserInfo(username)
|
user = getTwitterUserInfo(username)
|
||||||
@ -438,7 +440,7 @@ def settings():
|
|||||||
t = datetime.datetime.utcnow() - u.last_seen
|
t = datetime.datetime.utcnow() - u.last_seen
|
||||||
s = t.total_seconds()
|
s = t.total_seconds()
|
||||||
m = s/60
|
m = s/60
|
||||||
if m < 10:
|
if m < 25:
|
||||||
active = active+1
|
active = active+1
|
||||||
|
|
||||||
instanceInfo = {
|
instanceInfo = {
|
||||||
|
Reference in New Issue
Block a user