release: /version na 0.2.2
Wgrane razem z APK. Bez tego stary dialog Update available wyskakuje z mylacym Server 0.2.1 / App 0.2.2 (bundle OTA niesie app.json, wiec APP_VERSION raportuje juz 0.2.2 nawet na starym APK). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
e747b38d70
commit
635017c993
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ def version() -> dict[str, str | None]:
|
||||||
# mobile sklei z baseUrl.
|
# mobile sklei z baseUrl.
|
||||||
public_url = os.environ.get("BACKEND_PUBLIC_URL", "").rstrip("/")
|
public_url = os.environ.get("BACKEND_PUBLIC_URL", "").rstrip("/")
|
||||||
apk_url = f"{public_url}/static/app-release.apk" if public_url else "/static/app-release.apk"
|
apk_url = f"{public_url}/static/app-release.apk" if public_url else "/static/app-release.apk"
|
||||||
return {"version": "0.2.1", "apk_url": apk_url}
|
return {"version": "0.2.2", "apk_url": apk_url}
|
||||||
|
|
||||||
|
|
||||||
@app.get("/readyz")
|
@app.get("/readyz")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue