just return empty set
This commit is contained in:
parent
cc4ca18d7e
commit
b077cdfbe7
1 changed files with 4 additions and 2 deletions
|
@ -22,12 +22,14 @@ def httpExpires(sec):
|
||||||
|
|
||||||
class Root(controllers.RootController):
|
class Root(controllers.RootController):
|
||||||
@expose()
|
@expose()
|
||||||
def default(self, md5Hash, action, position = None):
|
def default(self, md5Hash = None, action = None, position = None):
|
||||||
|
if not md5Hash:
|
||||||
|
return dict()
|
||||||
try:
|
try:
|
||||||
f = ArchiveFile.byMd5sum(md5Hash)
|
f = ArchiveFile.byMd5sum(md5Hash)
|
||||||
except:
|
except:
|
||||||
return dict()
|
return dict()
|
||||||
|
|
||||||
if action == 'metadata':
|
if action == 'metadata':
|
||||||
return dict(metadata = f)
|
return dict(metadata = f)
|
||||||
elif action in ('timeline', 'timeline.png'):
|
elif action in ('timeline', 'timeline.png'):
|
||||||
|
|
Loading…
Reference in a new issue