Skip to content

Commit

Permalink
Merge pull request #87 from SCAI-BIO/fix-sql
Browse files Browse the repository at this point in the history
Fix SQL database
  • Loading branch information
mehmetcanay authored Sep 2, 2024
2 parents 40478df + 40853d5 commit d41973e
Show file tree
Hide file tree
Showing 16 changed files with 2 additions and 773 deletions.
9 changes: 2 additions & 7 deletions backend/api/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@

resources = {}
logger = logging.getLogger("uvicorn.info")
database = SQLLiteRepository(
db_path="./db/cdm.db",
data_path="./data",
initiate_with_data=True,
replace_if_exists=True,
)
database = SQLLiteRepository()
weaviate = WeaviateRepository(
mode="remote", path="http://ww8.index.k8s.bio.scai.fraunhofer.de"
)
Expand Down Expand Up @@ -414,7 +409,7 @@ async def import_data(
if (
filename.startswith("longitudinal_")
or filename.startswith("biomarkers_")
or filename == "metadata"
or filename.startswith("metadata")
):
database.store_upload(csv_data, table_name)

Expand Down
5 changes: 0 additions & 5 deletions backend/data/cdm/APOE.csv

This file was deleted.

10 changes: 0 additions & 10 deletions backend/data/cdm/CSF.csv

This file was deleted.

Loading

0 comments on commit d41973e

Please sign in to comment.