Browse Source

debug prints

Foppe Hemminga 6 years ago
parent
commit
9bb526ced5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      data.py

+ 3 - 0
data.py

@@ -42,9 +42,12 @@ timestamp_latest = res.timestamp
 
 
 with open('timestamp.txt', 'w+') as f:
 with open('timestamp.txt', 'w+') as f:
     timestamp_stored = f.read() or 0
     timestamp_stored = f.read() or 0
+    print(timestamp_stored)
     if timestamp_latest != timestamp_stored:
     if timestamp_latest != timestamp_stored:
+        print(timestamp_latest)
         f.write("{}".format(timestamp_latest))
         f.write("{}".format(timestamp_latest))
     else:
     else:
+        print(timestamp_latest)
         # Exit when there is nothing to do
         # Exit when there is nothing to do
         sys.exit()
         sys.exit()