fix space

This commit is contained in:
Florian Bezannier
2021-04-30 10:47:31 +02:00
parent 5f75d3fb30
commit 9228886be7
5 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -3,4 +3,4 @@ repos:
rev: 1.3.1 # The version of Prospector to use, at least 1.1.7
hooks:
- id: prospector
language: system
language: python
+3
View File
@@ -13,3 +13,6 @@ pylint:
- C0114
- C0115
- C0116
- W0603
- I0011
- W0511
+2
View File
@@ -1,6 +1,8 @@
[MASTER]
disable=
C0114,C0115,C0116,W0603,I0011,W0511
enable=
C0326
[FORMAT]
max-line-length=120
+1 -1
View File
@@ -321,7 +321,7 @@ def load_otp(filename="otp.bin"):
except ModuleNotFoundError:
return RenameUnpickler(input_file).load()
except FileNotFoundError:
logger.debug("",exc_info=True)
logger.debug("", exc_info=True)
return None
+1 -1
View File
@@ -91,7 +91,7 @@ def create_callback(): # flake8: noqa: C901
def capture_diffs_in_battery_table(timestamp, data, data_previous): # pylint: disable=unused-variable
if timestamp is None:
raise PreventUpdate
diff_data = diff_dashtable(data, data_previous, "start_at")
diff_data = diff_dashtable(data, data_previous,"start_at")
for changed_line in diff_data:
if changed_line['column_name'] == 'price':
if not Database.set_chargings_price(Database.get_db(),changed_line['start_at'],