We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 556f01c commit f827bc2Copy full SHA for f827bc2
weblate_web/crm/views.py
@@ -494,7 +494,7 @@ def generate_svg_stacked_bar_chart( # noqa: PLR0914
494
num_bars = calendar.monthrange(year, month)[1]
495
bar_labels = [str(d) for d in range(1, num_bars + 1)]
496
497
- def filter_by_day(inv, idx):
+ def filter_by_day(inv: Invoice, idx: int) -> bool:
498
return inv.issue_date.day == idx + 1
499
500
filter_func = filter_by_day
@@ -504,7 +504,7 @@ def filter_by_day(inv, idx):
504
num_bars = 12
505
bar_labels = [f"{m:02d}" for m in range(1, 13)]
506
507
- def filter_by_month(inv, idx):
+ def filter_by_month(inv: Invoice, idx: int) -> bool:
508
return inv.issue_date.month == idx + 1
509
510
filter_func = filter_by_month
0 commit comments