query: query('latest'): return string
This commit is contained in:
parent
7d09affd5b
commit
e8823db052
1 changed files with 2 additions and 2 deletions
|
|
@ -116,10 +116,10 @@ class Query:
|
|||
|
||||
for tag in sorted_tags:
|
||||
if self.db.vers.exists(tag):
|
||||
return tag
|
||||
return tag.decode()
|
||||
|
||||
# return the oldest tag, even if it does not exist in the database
|
||||
return sorted_tags[-1]
|
||||
return sorted_tags[-1].decode()
|
||||
|
||||
elif cmd == 'type':
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue