app.py verwendet nun Umgebungsvariable, um den json-Cache zu lokalisieren

This commit is contained in:
2026-06-22 16:09:38 +02:00
parent 08f64765b5
commit c8197b72fc
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
- [x] Erstes Tabellen-Layout mit Pandas erstellen
- [x] Navigation über die Sidebar implementieren
- [x] Uebersichtsteil erstellen
- [ ] Umgebungsvariablen in app.py verwenden
- [x] Umgebungsvariablen in app.py verwenden
- [x] Bereichsteil erstellen
- [x] Teil ueber nicht zuweisbare Daten
- [x] Kosten auf allen Seiten einblenden
+2 -1
View File
@@ -3,10 +3,11 @@ import pandas as pd
import plotly.express as px
import numpy as np
import io
import os
# --- Konstanten ---
TB2B = 1024**4 # TB in Bytes
FILE_PATH = "/data/json_cache.json"
FILE_PATH = os.getenv("JSON_CACHE_WITH_PATH", "/data/json_cache.json")
PRICE_PER_TB = 8.1 # CHF / TB
+1
View File
@@ -13,6 +13,7 @@ services:
- BEGIN_NAME_GROUPINFO_JSON_FILE=size_by_ownergroup_and_number_of_copies_
- ERROR_LOGFILE=error.log
- JSON_CACHE=json_cache.json
- JSON_CACHE_WITH_PATH=/data/json_cache.json
- AD_SERVER=d.psi.ch
- AD_SEARCH_BASE=DC=d,DC=psi,DC=ch
- AD_USER=${AD_USER}