Преглед на файлове

Use correct attribute name

Unrud преди 9 години
родител
ревизия
3e1e680bbc
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      radicale/xmlutils.py

+ 2 - 2
radicale/xmlutils.py

@@ -207,11 +207,11 @@ def _time_range_match(vobject_item, filter_, child_name):
     if start:
         start = datetime.strptime(start, "%Y%m%dT%H%M%SZ")
     else:
-        start = datetime.datetime.min
+        start = datetime.min
     if end:
         end = datetime.strptime(end, "%Y%m%dT%H%M%SZ")
     else:
-        end = datetime.datetime.max
+        end = datetime.max
     start = start.replace(tzinfo=timezone.utc)
     end = end.replace(tzinfo=timezone.utc)
     child = getattr(vobject_item, child_name.lower())