Skip to content

Commit 6fa7814

Browse files
Merge pull request #19 from makeopensource/develop
Fix hardware authorization reset bug
2 parents 0c44077 + 26c3362 commit 6fa7814

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎api/database/relational_db/relational_db_queue.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def get_hw_authorization(self, course):
175175

176176
def reset_hw_authorization(self, course):
177177
with self.cursor() as cursor:
178-
cursor.execute("DELETE FROM hardware")
178+
cursor.execute("DELETE FROM hardware WHERE course_id=?", (course,))
179179

180180
auth_code = secrets.token_urlsafe(16)
181181

0 commit comments

Comments
 (0)