Foppe Hemminga пре 6 година
родитељ
комит
93ea69a3dd
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      data.py

+ 2 - 2
data.py

@@ -40,12 +40,12 @@ cursor.execute(query)
 res = cursor.fetchone()
 timestamp_latest = res.timestamp
 
-with open('timestamp.txt', 'r+') as f:
+with open('timestamp.txt', 'r') as f:
     timestamp_stored = f.read()
     print(timestamp_stored)
     if timestamp_latest != timestamp_stored:
         print(timestamp_latest)
-        f.write("{}".format(timestamp_latest))
+        #f.write("{}".format(timestamp_latest))
     else:
         print(timestamp_latest)
         # Exit when there is nothing to do