xuyonghao
2024-12-30 93501af060bf8656c308ccf6319cf41cd5687c05
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)