Remove unused variable path
This commit is contained in:
parent
1c6e626979
commit
ecd0a16214
@ -791,7 +791,6 @@ def report(path, xml_request, collection):
|
|||||||
name = name_from_path(hreference, collection)
|
name = name_from_path(hreference, collection)
|
||||||
if name:
|
if name:
|
||||||
# Reference is an item
|
# Reference is an item
|
||||||
path = "/".join(hreference.split("/")[:-1]) + "/"
|
|
||||||
item = collection.get(name)
|
item = collection.get(name)
|
||||||
if item is None:
|
if item is None:
|
||||||
response = _item_response(hreference, found_item=False)
|
response = _item_response(hreference, found_item=False)
|
||||||
@ -800,7 +799,6 @@ def report(path, xml_request, collection):
|
|||||||
items = [item]
|
items = [item]
|
||||||
else:
|
else:
|
||||||
# Reference is a collection
|
# Reference is a collection
|
||||||
path = hreference
|
|
||||||
items = collection.pre_filtered_list(filters)
|
items = collection.pre_filtered_list(filters)
|
||||||
|
|
||||||
for item in items:
|
for item in items:
|
||||||
|
Loading…
Reference in New Issue
Block a user