forked from 0x2620/pandora
return url
This commit is contained in:
parent
89311c14b4
commit
5ced5cf791
1 changed files with 2 additions and 0 deletions
|
@ -422,6 +422,8 @@ class File(models.Model):
|
||||||
data[key] = self.info.get(key)
|
data[key] = self.info.get(key)
|
||||||
data['users'] = list(set([i['user'] for i in data['instances']]))
|
data['users'] = list(set([i['user'] for i in data['instances']]))
|
||||||
data['item'] = self.item.public_id
|
data['item'] = self.item.public_id
|
||||||
|
if 'url' in keys and 'url' in self.info:
|
||||||
|
data['url'] = self.info['url']
|
||||||
if keys:
|
if keys:
|
||||||
for k in list(data):
|
for k in list(data):
|
||||||
if k not in keys:
|
if k not in keys:
|
||||||
|
|
Loading…
Reference in a new issue