changeset 121:26cc1a16e7a3

laterlinks3: fix gcs_upload() function
author paulo
date Sat, 16 Jan 2021 10:14:02 +0000
parents 86e71857d99e
children 923d3ba3fb1a
files laterlinks3/laterlinks_flask_app.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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):