|
|
@@ -39,7 +39,7 @@ def get_timestamp_stored():
|
|
|
Retrieve the timestamp when the program checked the database
|
|
|
:return timestamp:
|
|
|
"""
|
|
|
- with open('npc-drops/timestamp.txt', 'r') as f:
|
|
|
+ with open('timestamp.txt', 'r') as f:
|
|
|
this_timestamp_stored = f.read()
|
|
|
return int(this_timestamp_stored)
|
|
|
|
|
|
@@ -50,7 +50,7 @@ def put_timestamp_stored(this_timestamp):
|
|
|
:param this_timestamp:
|
|
|
:return:
|
|
|
"""
|
|
|
- with open('npc_drops/timestamp.txt', 'w') as f:
|
|
|
+ with open('timestamp.txt', 'w') as f:
|
|
|
f.write(this_timestamp)
|
|
|
|
|
|
|
|
|
@@ -67,7 +67,7 @@ def get_data(stock_id, this_timestamp):
|
|
|
|
|
|
def process_data(this_data_previous, this_data_latest, this_threshold):
|
|
|
"""
|
|
|
- Checks if there is enough change to call it a drop
|
|
|
+ Calculate if there is enough change to call it a drop
|
|
|
:param this_data_previous:
|
|
|
:param this_data_latest:
|
|
|
:param this_threshold
|