mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2026-01-31 10:26:36 -06:00
hidden_help, small adjustments to routing
This commit is contained in:
+6
-1
@@ -89,6 +89,11 @@ def boolparse(string, default=False):
|
||||
else:
|
||||
return False
|
||||
|
||||
@app.route(str(app.config['HIDDEN_URL']) + '/help')
|
||||
@login_required
|
||||
def hidden_help():
|
||||
return render_template('hidden_help.html')
|
||||
|
||||
@app.route(app.config['HIDDEN_URL'])
|
||||
@login_required
|
||||
def hidden():
|
||||
@@ -111,7 +116,7 @@ def hidden():
|
||||
# Request, Parse & Build Data
|
||||
data = trap(tags, page, count, base64, showsample)
|
||||
print(showsample)
|
||||
return render_template('hidden.html', title='Gelbooru' data=data, base64=base64, showsample=showsample, showtags=showtags)
|
||||
return render_template('hidden.html', title='Gelbooru', data=data, base64=base64, showsample=showsample, showtags=showtags)
|
||||
|
||||
def base64ify(url):
|
||||
return base64.b64encode(requests.get(url).content).decode()
|
||||
|
||||
Reference in New Issue
Block a user