Feature: Goldene Gassi-Stunde — täglicher Push mit bestem Wetterfenster (SW by-v693)
- Scheduler-Job täglich 07:00: berechnet bestes 2h-Fenster via Open-Meteo - Score-System (max. 10 Pkt): Temperatur, Niederschlag, Wind, Tageszeit - User-Fallback auf letzten bekannten Standort (push_subscriptions.last_lat/lon) oder München - Nur Push wenn score >= 3 (kein sinnloser Push bei schlechtem Wetter) - DB-Migration: users.gassi_stunde_push (Boolean, default 0) - settings.js: Toggle "Goldene Gassi-Stunde täglich" in App-Einstellungen - PATCH /api/profile + auth.py /me: gassi_stunde_push Feld
This commit is contained in:
parent
af1508c0de
commit
6bf088df56
4 changed files with 239 additions and 3 deletions
|
|
@ -26,6 +26,7 @@ class ProfileUpdate(BaseModel):
|
|||
social_link: Optional[str] = None
|
||||
profil_sichtbarkeit: Optional[str] = None
|
||||
notes_ki_enabled: Optional[int] = None
|
||||
gassi_stunde_push: Optional[int] = None
|
||||
|
||||
|
||||
def _load_user(user_id: int) -> dict:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue