Loading jobs from setting should works
This commit is contained in:
12
main.py
12
main.py
@@ -37,15 +37,11 @@ def main():
|
||||
folder = client.folder(args.itemId).get(['name', 'id', 'size', 'modified_at', 'path_collection'])
|
||||
q.put(Job(folder, local))
|
||||
else:
|
||||
print('Not implemented reading from settings yet, using test data')
|
||||
local = Path('Temp')
|
||||
folder = client.folder('0').get(['name', 'id', 'size', 'modified_at', 'path_collection'])
|
||||
print('Loading jobs from setting file')
|
||||
for job in settings.get('jobs', []):
|
||||
local = Path(job['localDirectory'])
|
||||
folder = client.folder(job['itemId']).get(['name', 'id', 'size', 'modified_at', 'path_collection'])
|
||||
q.put(Job(folder, local))
|
||||
'''
|
||||
for job in SETTINGS.get('jobs', []):
|
||||
q.put(JobDirectory(job['itemId'], job['remote'], job['local']))
|
||||
print('Processing jobs in setting file')
|
||||
'''
|
||||
|
||||
threads = []
|
||||
interrupt_flag = {'exit': False}
|
||||
|
||||
Reference in New Issue
Block a user