xuyonghao
2024-12-27 fdbd37eb2516b67ca41b0b71b738e3368e2825fe
app/task/fetch_agent.py
@@ -483,7 +483,7 @@
                import_type_table(db, node)
            print("add resourceType record successfully")
        else:
            print("sync resources successfully")
            print("sync resourcesType successfully")
        if db.query(ResourceModel).count() == 0:
            with open(os.path.join(ENV_CONF_PATH, "resource.json"), 'r', encoding='utf-8') as file:
                json_data = json.load(file)