Răsfoiți Sursa

Drop past_days/future_days from CalendarEntry

These fields had no remaining consumers after the CalDAV removal.
ZiB 4 luni în urmă
părinte
comite
81eb8634d3
2 a modificat fișierele cu 1 adăugiri și 7 ștergeri
  1. 0 4
      room_cal/_utils.py
  2. 1 3
      room_cal/config-all.json

+ 0 - 4
room_cal/_utils.py

@@ -312,16 +312,12 @@ class RulesConfig:
 class CalendarEntry:
   name: str
   url: str | None = None
-  past_days: int | None = None
-  future_days: int | None = None
 
   @classmethod
   def from_dict(cls, d: dict) -> 'CalendarEntry':
     return cls(
       name=d['name'],
       url=d.get('url'),
-      past_days=d.get('past_days'),
-      future_days=d.get('future_days'),
     )
 
 

+ 1 - 3
room_cal/config-all.json

@@ -114,9 +114,7 @@
   "calendars": [
     {
       "name": "Fire",
-      "url": "webcal://cal.4114.us/fire.ics",
-      "past_days": null,
-      "future_days": null
+      "url": "webcal://cal.4114.us/fire.ics"
     }
   ],
   "api_url": "http://localhost:8000/"