Skip to content

Commit

Permalink
Merge pull request #176 from brain-bican/issue_62
Browse files Browse the repository at this point in the history
bug fix review schame change
  • Loading branch information
hkir-dev authored May 30, 2024
2 parents 9b685f0 + 69240d8 commit 31b46c8
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 31b46c8

Please sign in to comment.