Mercurial > hg > index.fcgi > www > www-1
diff laterlinks3/laterlinks_flask_app.py @ 121:26cc1a16e7a3
laterlinks3: fix gcs_upload() function
author | paulo |
---|---|
date | Sat, 16 Jan 2021 10:14:02 +0000 |
parents | 65db090a697e |
children |
line diff
1.1 --- a/laterlinks3/laterlinks_flask_app.py Sat Jan 16 01:53:09 2021 -0800 1.2 +++ b/laterlinks3/laterlinks_flask_app.py Sat Jan 16 10:14:02 2021 +0000 1.3 @@ -52,7 +52,8 @@ 1.4 1.5 def gcs_upload(fn, tmp_f): 1.6 blob = GCS_BUCKET.blob(fn) 1.7 - blob.upload_from_file(tmp_f, rewind=True) 1.8 + tmp_f.seek(0) 1.9 + blob.upload_from_string(tmp_f.read()) 1.10 1.11 1.12 def lldb_unread_load(lldb_unread_tmp_f):