forked from 0x2620/pandora
dont fail if item has not steams
This commit is contained in:
parent
92940398a6
commit
e2c61e4a78
1 changed files with 2 additions and 1 deletions
|
@ -1060,6 +1060,7 @@ def item_xml(request, id):
|
|||
item = qs[0]
|
||||
j = item.get_json()
|
||||
j['layers'] = item.get_layers(request.user)
|
||||
if 'resolution' in j:
|
||||
j['resolution'] = {'width': j['resolution'][0], 'height':j['resolution'][1]}
|
||||
def xmltree(root, key, data):
|
||||
if isinstance(data, list) or \
|
||||
|
|
Loading…
Reference in a new issue