Skip to content
Snippets Groups Projects
Commit 18eb8516 authored by Nikolai Mork's avatar Nikolai Mork
Browse files

Apply suggestion to soitool/database.py

parent bb8c1f1e
No related branches found
No related tags found
1 merge request!15Kodebok-koder
Pipeline #73812 canceled
......@@ -184,7 +184,7 @@ class Database:
codes = soitool.coder.get_code_set(number_of_entries, code_len)
# Statement for update
stmt = "UPDATE CodeBook SET Code = ?"
# Wiping Code column because of UNIQUE
# Inserting NULL into Code column because of UNIQUE constraint
self.conn.execute(stmt, (None,))
# Fill Code column with new codes
stmt = stmt + "WHERE Word = ?"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment