Mercurial > hg > index.fcgi > www > www-1
comparison laterlinks3/laterlinks_flask_app.py @ 140:ae6b4032a912
myrss2: FEEDS: Add jabberwocking.com, remove danielmiessler.com
author | paulo |
---|---|
date | Mon, 03 Jul 2023 04:40:23 +0000 |
parents | 65db090a697e |
children |
comparison
equal
deleted
inserted
replaced
1:3ca39376ee6c | 2:608d21a270e6 |
---|---|
50 return tmp_f | 50 return tmp_f |
51 | 51 |
52 | 52 |
53 def gcs_upload(fn, tmp_f): | 53 def gcs_upload(fn, tmp_f): |
54 blob = GCS_BUCKET.blob(fn) | 54 blob = GCS_BUCKET.blob(fn) |
55 blob.upload_from_file(tmp_f, rewind=True) | 55 tmp_f.seek(0) |
56 blob.upload_from_string(tmp_f.read()) | |
56 | 57 |
57 | 58 |
58 def lldb_unread_load(lldb_unread_tmp_f): | 59 def lldb_unread_load(lldb_unread_tmp_f): |
59 lldb_unread_tmp_f.seek(0) | 60 lldb_unread_tmp_f.seek(0) |
60 return csv.reader(lldb_unread_tmp_f, LLDIALECT) | 61 return csv.reader(lldb_unread_tmp_f, LLDIALECT) |