This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lines = { | |
11: " / ; ,-, \\_> <<_' ____________;_)", | |
7: " | | .--| |,~~~~~| |~~~,,,,'-| |", | |
3: " ( Y Y ( )", | |
9: " .| |~ // ___ '-',,'.", | |
15: " | '-._ ~~,,, ,,,~~ __.-'~ | |", | |
13: " | ; '-'\_\/> '-._ |", | |
20: " \ `'==========='` .'", | |
2: " ( ) ( ) (", | |
8: " | |-,,~~'-'___ '-' ~~| |._", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import request, url_for | |
# Supports multiple query args with the same key. | |
def url_for_here(**changed_args): | |
args = request.args.to_dict(flat=False) | |
args.update(request.view_args) | |
args.update(changed_args) | |
return url_for(request.endpoint, **args) | |
app.jinja_env.globals['url_for_here'] = url_for_here |