fix: qa issue

This commit is contained in:
Florian Bezannier
2024-08-31 13:21:31 +02:00
parent 830c03b4d9
commit da034c8ec2
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -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):
+2 -2
View File
@@ -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()