Skip to content

Commit

Permalink
Disabled lint str
Browse files Browse the repository at this point in the history
  • Loading branch information
antonko committed Mar 29, 2024
1 parent 630a1b2 commit f9918bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/services/job_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,9 @@ def adjust_color_intensity(self, color_intensity: float) -> float:

return 1.0

def generate_statistics(self, jobs_list: list[Job]) -> list[JobsTimeStatistics]:
def generate_statistics(self, jobs_list: list[Job]) -> list[JobsTimeStatistics]: # noqa: PLR0912, C901
"""Generate statistics for jobs."""
# TODO: This function is too complex. It should be refactored.
max_time_diff = 60

one_hour_ago = datetime.now(UTC).replace(second=0, microsecond=0) - timedelta(hours=1)
Expand Down

0 comments on commit f9918bf

Please sign in to comment.