Fix queue file config and remove print for codec
This commit is contained in:
2
main.py
2
main.py
@@ -39,5 +39,5 @@ for dir, dirs, files in os.walk(str(Config.BASE_PATH)):
|
||||
print(" ... added")
|
||||
jobs.append(item)
|
||||
|
||||
with open("queue.json", "w") as fp:
|
||||
with open(Config.QUEUE_FILE, "w") as fp:
|
||||
json.dump(jobs, fp, default=lambda o: getattr(o, 'as_dict', str)(), indent=2)
|
||||
|
||||
Reference in New Issue
Block a user