From 506f887a52b44db07f52bc7800f0e74974216a3e Mon Sep 17 00:00:00 2001 From: Jordan Taylor Date: Tue, 9 Apr 2024 17:56:04 +0100 Subject: [PATCH 1/2] Switch to replace mode for db.save_table --- app/model/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/model/database.py b/app/model/database.py index c86819d..5386543 100644 --- a/app/model/database.py +++ b/app/model/database.py @@ -117,7 +117,7 @@ def save_table( ): engine, Session = self._get_engine_and_session(table_class) with Session() as session: - df.to_sql(table_id, engine, index=False) + df.to_sql(table_id, engine, index=False, if_exists='replace') new_table = table_class( pmc_id=pmc_id, paper_title=paper_title, From 0d3aba7c5ca0935d0b241b21e630d45b4fb81429 Mon Sep 17 00:00:00 2001 From: Jordan Taylor Date: Tue, 9 Apr 2024 17:56:25 +0100 Subject: [PATCH 2/2] Bump minor version --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 445a4da..b16ae26 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ on: env: POETRY_VERSION: 1.6.1 PCKG_NAME: metaanalyser - VERSION: 0.1.4 + VERSION: 0.1.7 jobs: build: