Foppe Hemminga vor 6 Jahren
Ursprung
Commit
c6b979666a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      data.py

+ 1 - 1
data.py

@@ -41,7 +41,7 @@ res = cursor.fetchone()
 timestamp_latest = res.timestamp
 
 with open('timestamp.txt', 'w+') as f:
-    timestamp_stored = f.read() or 0
+    timestamp_stored = f.read()
     print(timestamp_stored)
     if timestamp_latest != timestamp_stored:
         print(timestamp_latest)