Foppe Hemminga преди 6 години
родител
ревизия
ac5b270ebe
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      data.py

+ 1 - 1
data.py

@@ -40,7 +40,7 @@ cursor.execute(query)
 res = cursor.fetchone()
 timestamp_latest = res.timestamp
 
-with open('timestamp.txt', 'w+') as f:
+with open('timestamp.txt', 'r+') as f:
     timestamp_stored = f.read()
     print(timestamp_stored)
     if timestamp_latest != timestamp_stored: