hra commited on
Commit
57b14a8
·
1 Parent(s): 1d0e242

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -165,11 +165,11 @@ def getstuff(openapikey):
165
  ###create file with new info locally & upload to bucket
166
  with open('lastradartext.txt', 'w') as f:
167
  for line in textlist:
168
- f.write(f"{line}\n")
169
 
170
  with fs.open('trends_chrome_extension_bucket/lastradartext.txt', 'wb') as file:
171
  for line in textlist:
172
- file.write(f"{line}\n")
173
 
174
  print('Came here 8')
175
 
@@ -177,7 +177,7 @@ def getstuff(openapikey):
177
 
178
  with open('lastradartext.txt', 'r') as file:
179
  data_old = file.read()
180
- value1,value2,value3,value4,value5,value6=data_old.split('SEPERATOR')
181
 
182
  ###upload image to cloud for next run display
183
  with open('lasttechradar.png','rb') as image_file:
 
165
  ###create file with new info locally & upload to bucket
166
  with open('lastradartext.txt', 'w') as f:
167
  for line in textlist:
168
+ f.write(f"{line}\n".encode())
169
 
170
  with fs.open('trends_chrome_extension_bucket/lastradartext.txt', 'wb') as file:
171
  for line in textlist:
172
+ file.write(f"{line}\n".encode())
173
 
174
  print('Came here 8')
175
 
 
177
 
178
  with open('lastradartext.txt', 'r') as file:
179
  data_old = file.read()
180
+ value1,value2,value3,value4,value5,value6=str(data_old).split('SEPERATOR')
181
 
182
  ###upload image to cloud for next run display
183
  with open('lasttechradar.png','rb') as image_file: