mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
Better collection discovery
This commit is contained in:
parent
058bd454c0
commit
7a0e267f19
4 changed files with 50 additions and 42 deletions
|
@ -222,8 +222,7 @@ class Collection(object):
|
|||
return []
|
||||
|
||||
# Try to guess if the path leads to a collection or an item
|
||||
if (cls.is_leaf("/".join(attributes[:-1])) or not
|
||||
path.endswith(("/", "/caldav", "/carddav"))):
|
||||
if cls.is_leaf("/".join(attributes[:-1])):
|
||||
attributes.pop()
|
||||
|
||||
result = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue