Skip to content
Snippets Groups Projects

#82 Cleanup

Merged Nikolai Mork requested to merge cleanup into master
14 files
+ 224
119
Compare changes
  • Side-by-side
  • Inline
Files
14
@@ -23,7 +23,8 @@ class CodebookTableView(QTableView):
Parameters
----------
database : soitool.database.Database
Is used to create a QSqlDatabase from the database-file.
Should be an instance of soitool.database.Database, and is used to
create a QSqlDatabase from the database-file.
Raises
------
@@ -154,7 +155,10 @@ class CodebookTableModel(QSqlTableModel):
Allowed values for column 'Type' are 'Liten' and 'Stor'.
This function ensures value is correctly cased.
Returns False if incorrect Type value, returns super otherwise.
Returns
-------
False if incorrect Type value, returns super otherwise.
"""
# If a change is made to column 'Type'
if index.column() == 2:
Loading