Skip to content

Commit

Permalink
Merge pull request #315 from labmlai/data-store
Browse files Browse the repository at this point in the history
fix: version check in api init
  • Loading branch information
lakshith-403 authored Nov 6, 2024
2 parents c2c2a9f + 9731d7b commit a2aa366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/server/labml_app/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ async def init_app_api(request: Request):
client_version = request.query_params.get('version', '')
api_version = settings.APP_API_VERSION

if utils.check_version(client_version, api_version):
if utils.check_version(str(client_version), str(api_version)):
return JSONResponse({'is_successful': False, 'error': 'API client is outdated, please upgrade'})
else:
return JSONResponse({'is_successful': True, 'version': api_version})
Expand Down

0 comments on commit a2aa366

Please sign in to comment.