Native gui make almost every data editable

This commit is contained in:
thooge committed 2026-11-04 12:45:16 +01:00
1 parent b8ac8d0185
commit 1a6674c819
48 files changed
+2168 -737

No files matched your search

+10
View File
@@ -12,3 +12,13 @@ class Measurement(DbRecord):
def __init__(self, db, mid=None):
super().__init__(db, mid)
self.title = _("Measurement({})")
def save(self, commit=True):
if not super().save():
return False
if commit:
try:
self.conn.commit()
except mariadb.Error as e:
return False
return True