fixed routes.py

This commit is contained in:
Xevion
2019-07-04 21:41:11 +00:00
parent 94a7a6a9ff
commit 9be5cbe745
2 changed files with 8 additions and 4 deletions

7
.gitignore vendored
View File

@@ -1,3 +1,8 @@
/xeviondevenv/*
xevion.dev.ini
*.old
*.pem
*.pyc
key
/app.db
/key
@@ -5,4 +10,4 @@ key
/migrations/*
/venv/*
/app/__pycache__/*
/__pycache__/*
/__pycache__/*

View File

@@ -43,8 +43,7 @@ def user_info():
@app.route('/')
def index():
if current_user.is_authenticated:
content = [{'text': fake.paragraph(nb_sentences=15),
content = [{'text': fake.paragraph(nb_sentences=15),
'seed': random.randint(0, 1000),
'title': fake.word().title()}
for _ in range(10)]
@@ -193,4 +192,4 @@ def build_data(tags, page, count, base64, showfull):
temp['base64'] = base64ify(temp['real_url'])
build.append(temp)
return build
return build