removed logs

This commit is contained in:
Away 2025-04-01 10:12:52 +00:00
parent d1e4598d22
commit e5e7e3b93c
1 changed files with 1 additions and 7 deletions

View File

@ -18,12 +18,7 @@ def add_field_to_docfield_json():
if not os.path.exists(docfield_json_path):
print(f"Ошибка: Файл {docfield_json_path} не найден.")
return False
# Создаем резервную копию файла
backup_path = docfield_json_path + '.bak.' + str(int(os.path.getmtime(docfield_json_path)))
shutil.copy2(docfield_json_path, backup_path)
print(f"Создана резервная копия: {backup_path}")
# Новое поле, которое нужно добавить
new_field = {
"fieldname": "js_parent_subtab",
@ -66,7 +61,6 @@ def add_field_to_docfield_json():
json.dump(docfield_def, file, indent=1, ensure_ascii=False)
print("✅ Поле 'js_parent_subtab' успешно добавлено в docfield.json")
print("Не забудьте выполнить 'bench migrate' для применения изменений")
return True
except Exception as e: