Fix: Tagebuch-Foto bei neuem Eintrag — GPS-Fetch bei anhängigen Dateien überspringen (SW by-v875)

This commit is contained in:
rene 2026-05-12 06:31:22 +02:00
parent b818f85f36
commit 0ab88ef6b6
5 changed files with 14 additions and 12 deletions

View file

@ -376,7 +376,7 @@ if STAGING and os.path.isdir(PROD_MEDIA_DIR):
else:
app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media")
APP_VER = "874" # muss mit APP_VER in app.js übereinstimmen
APP_VER = "875" # muss mit APP_VER in app.js übereinstimmen
@app.get("/.well-known/assetlinks.json")
async def assetlinks():

View file

@ -101,9 +101,9 @@
</script>
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
<link rel="stylesheet" href="/css/design-system.css?v=874">
<link rel="stylesheet" href="/css/layout.css?v=874">
<link rel="stylesheet" href="/css/components.css?v=874">
<link rel="stylesheet" href="/css/design-system.css?v=875">
<link rel="stylesheet" href="/css/layout.css?v=875">
<link rel="stylesheet" href="/css/components.css?v=875">
</head>
<body>
@ -583,10 +583,10 @@
<div id="modal-container"></div>
<!-- JS: Reihenfolge ist wichtig — erst Basis, dann Features -->
<script src="/js/api.js?v=874"></script>
<script src="/js/ui.js?v=874"></script>
<script src="/js/app.js?v=874"></script>
<script src="/js/worlds.js?v=874"></script>
<script src="/js/api.js?v=875"></script>
<script src="/js/ui.js?v=875"></script>
<script src="/js/app.js?v=875"></script>
<script src="/js/worlds.js?v=875"></script>
<!-- Feature-Seiten werden lazy geladen -->

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
const APP_VER = '874'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VER = '875'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app';
// Cache-Bust-Parameter nach Update-Reload sofort entfernen

View file

@ -1678,9 +1678,11 @@ window.Page_diary = (() => {
});
await UI.asyncButton(submitBtn, async () => {
// Auto-Wetter: nur bei neuem Eintrag ohne GPS-Standort
// Auto-Wetter: nur bei neuem Eintrag ohne GPS-Standort und OHNE anhängige Dateien.
// Wenn Dateien hochzuladen sind, dürfen wir keinen langen await vor dem Upload machen —
// iOS macht File-Handles nach längerer Pause ungültig (WebKit-Bug).
let _clientWeather = null;
if (!isEdit && _locLat == null) {
if (!isEdit && _locLat == null && _newFiles.length === 0) {
try {
const pos = await API.getLocation();
const wd = await API.weather.get(pos.lat, pos.lon);

View file

@ -3,7 +3,7 @@
Offline-Cache + Push Notifications + Tile-Cache
============================================================ */
const CACHE_VERSION = 'by-v874';
const CACHE_VERSION = 'by-v875';
const CACHE_STATIC = `${CACHE_VERSION}-static`;
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache