Skip to content

Commit

Permalink
docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
why-not-try-calmer committed Dec 12, 2023
1 parent 579c8f2 commit c202b66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions comptages/core/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def prepare_reports(
def _prepare_default_reports(
file_path: str, count: models.Count, template_path: str, callback_progress
):
"""Write default reports to disk (1 per section in count, per week)"""
# We do by section and not by count because of special cases.
sections = models.Section.objects.filter(
lane__id_installation__count=count
Expand Down Expand Up @@ -75,6 +76,7 @@ def _prepare_yearly_report(
sections_ids: list[str],
callback_progress,
):
"""Write default reports to disk (1 per section included in the count)"""
# Get first count to be used as example
count_qs = models.Count.objects.filter(
id_installation__lane__id_section=sections_ids[0], start_process_date__year=year
Expand Down
2 changes: 1 addition & 1 deletion comptages/report/yearly_report_bike.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Any


from django.db.models import Sum, Count, QuerySet
from django.db.models import Sum, Count
from django.db.models.functions import Cast
from django.db.models.fields import DateField
from django.db.models.functions import (
Expand Down

0 comments on commit c202b66

Please sign in to comment.