mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 14:03:55 -05:00
Clean up imports and formatting in stats.py
This commit is contained in:
parent
44b5e699ec
commit
013afee1c5
1 changed files with 3 additions and 6 deletions
|
|
@ -5,18 +5,14 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
import sys, os
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Dynamisch den Pfad zu 'anki_helpers' ergänzen
|
||||
project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", ".."))
|
||||
anki_helpers_path = os.path.join(project_root, "anki")
|
||||
sys.path.insert(0, anki_helpers_path)
|
||||
|
||||
from anki.anki_helpers.activity import analyze_activity
|
||||
|
||||
|
||||
|
||||
|
||||
import json
|
||||
import random
|
||||
import time
|
||||
|
|
@ -25,6 +21,7 @@ from typing import Any
|
|||
|
||||
import anki.cards
|
||||
import anki.collection
|
||||
from anki.anki_helpers.activity import analyze_activity
|
||||
from anki.consts import *
|
||||
from anki.lang import FormatTimeSpan
|
||||
from anki.utils import base62, ids2str
|
||||
|
|
|
|||
Loading…
Reference in a new issue