mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-26 10:17:18 +00:00
fix space
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -13,3 +13,6 @@ pylint:
|
||||
- C0114
|
||||
- C0115
|
||||
- C0116
|
||||
- W0603
|
||||
- I0011
|
||||
- W0511
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
[MASTER]
|
||||
disable=
|
||||
C0114,C0115,C0116,W0603,I0011,W0511
|
||||
enable=
|
||||
C0326
|
||||
[FORMAT]
|
||||
max-line-length=120
|
||||
|
||||
|
||||
+1
-1
@@ -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
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user