mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-07 07:16:53 -06:00
fixed routes.py
This commit is contained in:
7
.gitignore
vendored
7
.gitignore
vendored
@@ -1,3 +1,8 @@
|
|||||||
|
/xeviondevenv/*
|
||||||
|
xevion.dev.ini
|
||||||
|
*.old
|
||||||
|
*.pem
|
||||||
|
*.pyc
|
||||||
key
|
key
|
||||||
/app.db
|
/app.db
|
||||||
/key
|
/key
|
||||||
@@ -5,4 +10,4 @@ key
|
|||||||
/migrations/*
|
/migrations/*
|
||||||
/venv/*
|
/venv/*
|
||||||
/app/__pycache__/*
|
/app/__pycache__/*
|
||||||
/__pycache__/*
|
/__pycache__/*
|
||||||
|
|||||||
@@ -43,8 +43,7 @@ def user_info():
|
|||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def index():
|
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),
|
'seed': random.randint(0, 1000),
|
||||||
'title': fake.word().title()}
|
'title': fake.word().title()}
|
||||||
for _ in range(10)]
|
for _ in range(10)]
|
||||||
@@ -193,4 +192,4 @@ def build_data(tags, page, count, base64, showfull):
|
|||||||
temp['base64'] = base64ify(temp['real_url'])
|
temp['base64'] = base64ify(temp['real_url'])
|
||||||
|
|
||||||
build.append(temp)
|
build.append(temp)
|
||||||
return build
|
return build
|
||||||
|
|||||||
Reference in New Issue
Block a user