mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-21 17:06:18 +00:00
fix: qa issue
This commit is contained in:
@@ -14,11 +14,12 @@ class CustomLogger(logging.Logger):
|
||||
exc_info=None,
|
||||
extra=None,
|
||||
stack_info=False,
|
||||
stacklevel=1,
|
||||
exc_info_debug=False,
|
||||
**kwargs):
|
||||
if exc_info_debug and self.isEnabledFor(logging.DEBUG):
|
||||
exc_info = True
|
||||
super()._log(level, msg, args, exc_info, extra, stack_info)
|
||||
super()._log(level, msg, args, exc_info, extra, stack_info, stacklevel)
|
||||
|
||||
def __new_style_log(self, level, msg, args, exc_info=None, extra=None, # pylint: disable=too-many-arguments
|
||||
stack_info=False, **kwargs):
|
||||
|
||||
@@ -49,8 +49,8 @@ class Trips(list):
|
||||
speed_average = 0
|
||||
return speed_average
|
||||
|
||||
@staticmethod # noqa: MC0001
|
||||
def get_trips(vehicles_list: Cars) -> Dict[str, "Trips"]:
|
||||
@staticmethod
|
||||
def get_trips(vehicles_list: Cars) -> Dict[str, "Trips"]: # noqa: MC0001
|
||||
# pylint: disable=too-many-locals,too-many-statements,too-many-nested-blocks,too-many-branches
|
||||
conn = Database.get_db()
|
||||
vehicles = conn.execute("SELECT DISTINCT vin FROM position;").fetchall()
|
||||
|
||||
Reference in New Issue
Block a user