Skip to content

Commit

Permalink
update harmonisation status
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhayhurst committed Jul 21, 2023
1 parent 37bc5dc commit 2040dcb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions harmonisationUtils/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,22 @@ def insert_study(self, study: tuple) -> None:
""",
study)
self.commit()

def update_harmonisation_status(self, study_id: str, status: bool) -> None:
self.cur.execute("""
UPDATE studies
SET isHarm = ?
WHERE study = ?
""",
(status, study_id))

def update_in_progress_status(self, study_id: str, status: bool) -> None:
self.cur.execute("""
UPDATE studies
SET inProg = ?
WHERE study = ?
""",
(status, study_id))

def select_studies(self, studies: list) -> list:
sql = f"""
Expand Down

0 comments on commit 2040dcb

Please sign in to comment.