mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
MainWindow: Create a study file copy in current dire before update.
This commit is contained in:
1 parent
bbf85a6048
commit
3a78d6d6f7
3 files changed
+28
-4
No files matched your search
+2
-1
@@ -37,6 +37,8 @@ logger = logging.getLogger()
|
||||
|
||||
|
||||
class Study(SQLModel):
|
||||
_version = "0.2.0"
|
||||
|
||||
_sub_classes = [
|
||||
Scenario,
|
||||
River,
|
||||
@@ -44,7 +46,6 @@ class Study(SQLModel):
|
||||
|
||||
def __init__(self, filename=None, init_new=True):
|
||||
# Metadata
|
||||
self._version = "0.2.0"
|
||||
self.creation_date = datetime.now()
|
||||
self.last_modification_date = datetime.now()
|
||||
self.last_save_date = datetime.now()
|
||||
|
||||
Reference in new issue
Block a user