Update state file and grist data file paths in checker.py
This commit is contained in:
parent
e1af79bac9
commit
4e1804bb06
@ -41,7 +41,7 @@ import colorama
|
|||||||
import logging
|
import logging
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
STATE_FILE_PATH = '/root/node/sync_state.json'
|
STATE_FILE_PATH = '/root/node/sync_state_2.json'
|
||||||
|
|
||||||
def self_update(logger):
|
def self_update(logger):
|
||||||
logger.info("Checking for updates..")
|
logger.info("Checking for updates..")
|
||||||
@ -282,7 +282,7 @@ if __name__ == "__main__":
|
|||||||
#time.sleep(random_sleep)
|
#time.sleep(random_sleep)
|
||||||
|
|
||||||
grist_data = {}
|
grist_data = {}
|
||||||
with open('/root/node/grist_1.json', 'r', encoding='utf-8') as f:
|
with open('/root/node/grist.json', 'r', encoding='utf-8') as f:
|
||||||
grist_data = json.loads(f.read())
|
grist_data = json.loads(f.read())
|
||||||
|
|
||||||
GRIST_ROW_NAME = socket.gethostname()
|
GRIST_ROW_NAME = socket.gethostname()
|
||||||
|
Loading…
Reference in New Issue
Block a user