Skip to content

Commit

Permalink
bug fix review schame change
Browse files Browse the repository at this point in the history
  • Loading branch information
hkir-dev committed May 30, 2024
1 parent 6fa45c6 commit 69240d8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tdt/api/review.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ def update_reviews(review: dict):
with closing(sqlite3.connect(sqlite_db)) as connection:
with closing(connection.cursor()) as cursor:
cursor.execute(
"UPDATE {} SET review='{}', explanation='{}' WHERE target_node_accession='{}' and name='{}' and time='{}'".format(
"UPDATE {} SET review='{}', explanation='{}' WHERE target_node_accession='{}' and reviewer='{}' and datestamp='{}'".format(
TABLE_NAME,
review.get("review", ""),
review.get("explanation", ""),
review.get("target_node_accession", ""),
review.get("name", ""),
review.get("time", ""),
review.get("reviewer", ""),
review.get("datestamp", ""),
)
)
connection.commit()
Expand All @@ -109,11 +109,11 @@ def delete_review(review: dict):
with closing(sqlite3.connect(sqlite_db)) as connection:
with closing(connection.cursor()) as cursor:
cursor.execute(
"DELETE FROM {} WHERE target_node_accession='{}' and name='{}' and time='{}'".format(
"DELETE FROM {} WHERE target_node_accession='{}' and reviewer='{}' and datestamp='{}'".format(
TABLE_NAME,
review.get("target_node_accession", ""),
review.get("name", ""),
review.get("time", ""),
review.get("reviewer", ""),
review.get("datestamp", ""),
)
)
connection.commit()
Expand Down

0 comments on commit 69240d8

Please sign in to comment.