Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
why-not-try-calmer committed Nov 20, 2023
1 parent fbb5f6b commit 645e203
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions comptages/core/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def _data_day_yearly(count: models.Count, section: models.Section, year: int, wo
row_offset = 35
col_offset = 2

df = statistics.get_time_data_yearly(year, section: models.Section, direction=1)
df = statistics.get_time_data_yearly(year, section, direction=1)

for i in range(7):
day_df = df[df["date"] == i]
Expand Down Expand Up @@ -368,7 +368,7 @@ def _data_day_yearly(count: models.Count, section: models.Section, year: int, wo
row_offset = 66
col_offset = 2

df = statistics.get_time_data_yearly(year, section: models.Section, direction=2)
df = statistics.get_time_data_yearly(year, section, direction=2)

for i in range(7):
day_df = df[df["date"] == i]
Expand Down Expand Up @@ -486,7 +486,7 @@ def _data_speed(count: models.Count, section: models.Section, monday, workbook:
col_offset = 19

df = statistics.get_average_speed_by_hour(
count, section: models.Section, direction=1, start=monday, end=monday + timedelta(days=7)
count, section, direction=1, start=monday, end=monday + timedelta(days=7)
)
for row in df.itertuples():
ws.cell(row=row_offset + row.Index, column=col_offset, value=row.speed)
Expand Down Expand Up @@ -531,7 +531,7 @@ def _data_speed(count: models.Count, section: models.Section, monday, workbook:
col_offset = 19

df = statistics.get_average_speed_by_hour(
count, section: models.Section, direction=2, start=monday, end=monday + timedelta(days=7)
count, section, direction=2, start=monday, end=monday + timedelta(days=7)
)
for row in df.itertuples():
ws.cell(row=row_offset + row.Index, column=col_offset, value=row.speed)
Expand Down Expand Up @@ -599,7 +599,7 @@ def _data_speed_yearly(count: models.Count, section: models.Section, year: int,
col_offset = 16
for i, v in enumerate(characteristic_speeds):
df = statistics.get_characteristic_speed_by_hour(
None, section: models.Section, direction=1, start=start, end=end, v=v
None, section, direction=1, start=start, end=end, v=v
)
for row in df.itertuples():
ws.cell(
Expand Down Expand Up @@ -643,7 +643,7 @@ def _data_speed_yearly(count: models.Count, section: models.Section, year: int,
col_offset = 16
for i, v in enumerate(characteristic_speeds):
df = statistics.get_characteristic_speed_by_hour(
count, section: models.Section, direction=2, start=start, end=end, v=v
count, section, direction=2, start=start, end=end, v=v
)
for row in df.itertuples():
ws.cell(
Expand Down

0 comments on commit 645e203

Please sign in to comment.