Commit 8a88fea8 authored by Alejandro Alvarez Ayllon's avatar Alejandro Alvarez Ayllon
Browse files

FTS-734: Fix schema reporting

parent 0a7c83c1
......@@ -64,8 +64,9 @@ class ApiController(BaseController):
def api_version(self):
schema_v = Session.query(SchemaVersion).all()
schema_v = schema_v[0] if schema_v else None
schema_v = Session.query(SchemaVersion)\
.order_by(SchemaVersion.major.desc(), SchemaVersion.minor.desc(), SchemaVersion.patch.desc())\
return {
'core': self.fts_core_version,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment