aboutsummaryrefslogtreecommitdiff
path: root/pastebin.py
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-02-11 18:54:56 -0500
committerB. Stack <bgstack15@gmail.com>2022-02-11 18:54:56 -0500
commit6641c28ab2109277ed9e15559d3ecdc10cc5b807 (patch)
tree6b98ea7417647f5e8574df7a9b2b7d69813d5651 /pastebin.py
parentfixed deps which means flask 1 (diff)
downloadstackbin-6641c28ab2109277ed9e15559d3ecdc10cc5b807.tar.gz
stackbin-6641c28ab2109277ed9e15559d3ecdc10cc5b807.tar.bz2
stackbin-6641c28ab2109277ed9e15559d3ecdc10cc5b807.zip
Fix dep problem so flask>=2.0.0 now!
By just writing a new initdb command so we don't need manage.py anymore.
Diffstat (limited to 'pastebin.py')
-rw-r--r--pastebin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pastebin.py b/pastebin.py
index c2ed89d..9807b01 100644
--- a/pastebin.py
+++ b/pastebin.py
@@ -75,7 +75,7 @@ def show_paste(paste_id):
try:
sign = request.args.get('s', '')
assert str(paste.id) == \
- Signer(app.secret_key, salt='jackson').unsign(sign)
+ Signer(app.secret_key, salt='jackson').unsign(sign).decode("utf-8")
except:
abort(403)
return render_template('show_paste.html', paste=paste)
bgstack15