1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00

Update propfind.py

Don't return getcontentcount prop on leaf or principal collection.
This commit is contained in:
MatthewHana 2024-03-13 02:02:23 +11:00
parent ee2fc74bc0
commit 2c13b8d2e0

View file

@ -274,7 +274,7 @@ def xml_propfind_response(
is404 = True
elif tag == xmlutils.make_clark("RADICALE:getcontentcount"):
# Only for internal use by the web interface
if not is_collection or is_leaf:
if is_collection and not collection.is_principal:
element.text = str(sum(1 for entry in item.get_all()))
else:
is404 = True