Przeglądaj źródła

Fix version_manager method call in get_table_info endpoint

Use await get_current_version() instead of non-existent get_version().

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
tuanchris 3 tygodni temu
rodzic
commit
2a575fabb1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -925,7 +925,7 @@ async def get_table_info():
     return {
         "id": state.table_id,
         "name": state.table_name,
-        "version": version_manager.get_version()
+        "version": await version_manager.get_current_version()
     }
 
 @app.patch("/api/table-info", tags=["multi-table"])