pep8: Change to respect pep8 code style.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-12-11 14:40:54 +01:00
1 parent 1ab1cb37b0
commit eea355a784
31 files changed
+169 -98

No files matched your search

+3 -2
View File
@@ -18,11 +18,12 @@
from Model.Tools.PamhyrDB import SQLSubModel
class BHSValue(SQLSubModel):
_sub_classes = []
_id_cnt = 0
def __init__(self, name: str = "", type = float, value = 0.0,
def __init__(self, name: str = "", type=float, value=0.0,
status=None):
super(BHSValue, self).__init__()
@@ -117,7 +118,7 @@ class BHSValue(SQLSubModel):
"hydraulic_structures_basic_value(name, type, value, bhs) " +
"VALUES (" +
f"'{self._db_format(self._name)}', " +
f"'{self._db_format(self._type_to_str(self._type))}', "+
f"'{self._db_format(self._type_to_str(self._type))}', " +
f"'{self._db_format(self._value)}', " +
f"{bhs_id}" +
")"