diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b449ddf..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.6 + VERSION: 0.1.7 jobs: build: 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,