mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Fix pep8
This commit is contained in:
1 parent
944f99f14b
commit
da28bae6c5
3 files changed
+4
-3
No files matched your search
@@ -335,7 +335,8 @@ class ProfileXYZ(Profile, SQLSubModel):
|
||||
f"{self.pamhyr_id}, {self._db_format(self.is_deleted())}, " +
|
||||
f"{ind}, '{self._db_format(self._name)}', " +
|
||||
f"{self.reach.pamhyr_id}, {self.rk}, {self.num}, " +
|
||||
f"{self.code1}, {self.code1}, {sl}, {self._status.scenario_id}, {self._db_format(self._enabled)}" +
|
||||
f"{self.code1}, {self.code1}, {sl}, {self._status.scenario_id}, " +
|
||||
f"{self._db_format(self._enabled)}" +
|
||||
")"
|
||||
)
|
||||
|
||||
|
||||
@@ -204,7 +204,6 @@ class ProfileWindow(PamhyrWindow):
|
||||
|
||||
self._tablemodel.beginResetModel()
|
||||
self._tablemodel._data = profile
|
||||
# update lst to display correct data and apply connexions to add/remove points
|
||||
self._tablemodel._setup_lst()
|
||||
self._tablemodel.endResetModel()
|
||||
|
||||
|
||||
@@ -544,7 +544,8 @@ class GeometryWindow(PamhyrWindow):
|
||||
def _set_checkbox_state(self):
|
||||
rows = self.index_selected_rows()
|
||||
editable = not self._study.is_read_only()
|
||||
disabled_count = self._reach.number_profiles - self._reach.number_enabled_profiles
|
||||
disabled_count = (self._reach.number_profiles -
|
||||
self._reach.number_enabled_profiles)
|
||||
self._checkbox.setText(
|
||||
self._trad["cross_section_enabled_count"].format(
|
||||
count=disabled_count
|
||||
|
||||
Reference in new issue
Block a user