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