Rename checkboxes (too generic) to status (and some bug fixes)

This commit is contained in:
2025-01-30 15:03:16 +01:00
parent 050b1993da
commit 7d16e491c8
46 changed files with 304 additions and 281 deletions

View File

@@ -318,13 +318,18 @@ class BrickSQL(object):
),
package='bricktracker'
)
except Exception:
module = None
# If a module has been loaded, we need to fail if an error
# occured while executing the migration function
if module is not None:
function = getattr(module, 'migration_{name}'.format(
name=pending.name
))
context: dict[str, Any] = function(self)
except Exception:
else:
context: dict[str, Any] = {}
self.executescript(pending.get_query(), **context)