Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
soitool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bachelor-paa-bittet
soitool
Commits
18eb8516
Commit
18eb8516
authored
5 years ago
by
Nikolai Mork
Browse files
Options
Downloads
Patches
Plain Diff
Apply suggestion to soitool/database.py
parent
bb8c1f1e
No related branches found
No related tags found
1 merge request
!15
Kodebok-koder
Pipeline
#73812
canceled
5 years ago
Stage: lint
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
soitool/database.py
+1
-1
1 addition, 1 deletion
soitool/database.py
with
1 addition
and
1 deletion
soitool/database.py
+
1
−
1
View file @
18eb8516
...
...
@@ -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 = ?
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment