query: query('latest'): return string

This commit is contained in:
Théo Lebrun 2025-02-14 12:48:11 +01:00
parent 7d09affd5b
commit e8823db052

View file

@ -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':