Clean up imports and formatting in stats.py

This commit is contained in:
Al Ali 2025-06-16 23:15:47 +02:00
parent 44b5e699ec
commit 013afee1c5

View file

@ -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