|
|
@@ -40,16 +40,16 @@ cursor.execute(query)
|
|
|
res = cursor.fetchone()
|
|
|
timestamp_latest = res.timestamp
|
|
|
|
|
|
-with open('timestamp.txt', 'r') as f:
|
|
|
+with open('/home/rgiskard/npc-drops/timestamp.txt', 'r') as f:
|
|
|
timestamp_stored = f.read()
|
|
|
- print("timestamp_stored: {}".format(timestamp_stored))
|
|
|
- print("timestamp_latest: {}".format(timestamp_latest))
|
|
|
+ # print("timestamp_stored: {}".format(timestamp_stored))
|
|
|
+ # print("timestamp_latest: {}".format(timestamp_latest))
|
|
|
if timestamp_latest == int(timestamp_stored):
|
|
|
# print(timestamp_latest)
|
|
|
# Exit when there is nothing to do
|
|
|
sys.exit()
|
|
|
|
|
|
-with open('timestamp.txt', 'w') as f:
|
|
|
+with open('/home/rgiskard/npc-drops/timestamp.txt', 'w') as f:
|
|
|
f.write("{}".format(timestamp_latest))
|
|
|
|
|
|
print(timestamp_previous)
|