Selaa lähdekoodia

Write string not int

Foppe Hemminga 6 vuotta sitten
vanhempi
commit
65492b5963
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      model.py

+ 1 - 1
model.py

@@ -51,7 +51,7 @@ def put_timestamp_stored(this_timestamp):
     :return:
     """
     with open('timestamp.txt', 'w') as f:
-        f.write(this_timestamp)
+        f.write("{}".format(this_timestamp))
 
 
 def get_data(stock_id, this_timestamp):