Bläddra i källkod

Getting tired

Foppe Hemminga 6 år sedan
förälder
incheckning
c60e530563
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      data.py

+ 1 - 1
data.py

@@ -43,7 +43,7 @@ timestamp_latest = res.timestamp
 with open('timestamp.txt', 'r+') as f:
     timestamp_stored = f.read()
     print(timestamp_stored)
-    if timestamp_latest > timestamp_stored:
+    if timestamp_latest > int(timestamp_stored):
         # print(timestamp_latest)
         f.write("{}".format(timestamp_latest))
     else: