Add new fields to config and cleardata
This commit is contained in:
2
main.py
2
main.py
@@ -539,6 +539,7 @@ def put_object(params, files, url):
|
||||
ws.transaction()
|
||||
res = ws.save()
|
||||
ws.commit(f'Putobject from {params["to"]}')
|
||||
ws.clearData(True)
|
||||
|
||||
|
||||
def apply_commits(params, files, url):
|
||||
@@ -569,6 +570,7 @@ def apply_commits(params, files, url):
|
||||
files_data = json.load(f)
|
||||
for file_data in files_data:
|
||||
upload_file(os.path.join(dir.name, file_data['key']), file_data['key'], file_data['bucket'])
|
||||
ws.clearData(True)
|
||||
|
||||
|
||||
def run_task(query_type, params, files, url):
|
||||
|
||||
Reference in New Issue
Block a user