Update client version comparison logic
This commit is contained in:
parent
f7ee1fd4fc
commit
2c145e71ad
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class ClientVersion(Model):
|
|||
@staticmethod
|
||||
def latest():
|
||||
Model._create_table_if_not_exists(table_name=_table_name, table_definition=_table_definition)
|
||||
return Model._query_one('SELECT * FROM client_versions ORDER BY CAST(released_at as datetime) DESC LIMIT 1', ClientVersion.factory)
|
||||
return Model._query_one('SELECT * FROM client_versions ORDER BY released_at DESC LIMIT 1', ClientVersion.factory)
|
||||
|
||||
@staticmethod
|
||||
def all():
|
||||
|
|
Loading…
Reference in a new issue