mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Friction: Rename 'Section' to 'Friction'.
This commit is contained in:
1 parent
1d3cf8bd94
commit
956a0714a2
16 files changed
+362
-348
No files matched your search
+4
-2
@@ -24,7 +24,7 @@ class Study(SQLModel):
|
||||
|
||||
def __init__(self, filename = None, init_new = True):
|
||||
# Metadata
|
||||
self._version = "0.0.0"
|
||||
self._version = "0.0.1"
|
||||
self.creation_date = datetime.now()
|
||||
self.last_modification_date = datetime.now()
|
||||
self.last_save_date = datetime.now()
|
||||
@@ -194,7 +194,9 @@ class Study(SQLModel):
|
||||
if version[0] == self._version:
|
||||
return True
|
||||
|
||||
if self._update_submodel(version):
|
||||
logger.info("Update database")
|
||||
|
||||
if self._update_submodel(version[0]):
|
||||
self.execute(f"UPDATE info SET value='{self._version}' WHERE key='version'")
|
||||
return True
|
||||
|
||||
|
||||
Reference in new issue
Block a user