mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Fix formatting in activity.py
This commit is contained in:
parent
6ff9452656
commit
c69d0735ed
1 changed files with 1 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ from collections import defaultdict
|
||||||
from typing import Dict, Union
|
from typing import Dict, Union
|
||||||
from anki.collection import Collection
|
from anki.collection import Collection
|
||||||
|
|
||||||
|
|
||||||
def analyze_activity(col: Collection, days: int = 30) -> dict[str, Union[int, float]]:
|
def analyze_activity(col: Collection, days: int = 30) -> dict[str, Union[int, float]]:
|
||||||
|
|
||||||
day_cutoff = col.sched.day_cutoff
|
day_cutoff = col.sched.day_cutoff
|
||||||
|
|
@ -30,4 +31,3 @@ def analyze_activity(col: Collection, days: int = 30) -> dict[str, Union[int, fl
|
||||||
"average_per_day": round(average_per_day, 2),
|
"average_per_day": round(average_per_day, 2),
|
||||||
"low_days": low_days,
|
"low_days": low_days,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue