From 73c3c4135c0bbb70d53b51b7fb6985ed9a205845 Mon Sep 17 00:00:00 2001 From: yangdx Date: Fri, 19 Dec 2025 18:15:12 +0800 Subject: [PATCH] Drop Python 3.13 from tests and reformat code --- .github/workflows/tests.yml | 2 +- lightrag/kg/postgres_impl.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f54a7ee3..c9fb6c0b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - python-version: ['3.12', '3.13', '3.14'] + python-version: ['3.12', '3.14'] steps: - uses: actions/checkout@v6 diff --git a/lightrag/kg/postgres_impl.py b/lightrag/kg/postgres_impl.py index 02a19ddb..6c07c7d2 100644 --- a/lightrag/kg/postgres_impl.py +++ b/lightrag/kg/postgres_impl.py @@ -2359,7 +2359,9 @@ class PGVectorStorage(BaseVectorStorage): workspace_count = ( workspace_count_result.get("count", 0) if workspace_count_result else 0 ) - if workspace_count == 0 and not (table_name.lower() == legacy_table_name.lower()): + if workspace_count == 0 and not ( + table_name.lower() == legacy_table_name.lower() + ): logger.warning( f"PostgreSQL: workspace data in table '{table_name}' is empty. " f"Ensure it is caused by new workspace setup and not an unexpected embedding model change."