vercors.me : retrait de Rochechinard, Marignac-en-Diois et Solaure-en-Diois (pas d'autorisation), Méaudre station Gastinel, sources ROMMA et Infoclimat dans À propos
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cette révision appartient à :
1 Parent
b53d00102f
révision
77c05e12ab
7 fichiers modifiés
+25
-31
Aucun fichier ne correspond à votre recherche
@@ -113,8 +113,17 @@ def courbes(db, maintenant, jours=JOURS):
|
||||
return out
|
||||
|
||||
|
||||
# Stations qu'on n'a pas le droit de publier (04/11/2026 : pas d'autorisation) : gardées en base, jamais écrites.
|
||||
NON_PUBLIEES = {"rochechinard", "marignac", "solaure"}
|
||||
|
||||
|
||||
def ecrire(dossier, maintenant, db):
|
||||
cb = courbes(db, maintenant)
|
||||
cb = {k: v for k, v in courbes(db, maintenant).items() if k not in NON_PUBLIEES}
|
||||
for sid in NON_PUBLIEES:
|
||||
try:
|
||||
os.remove(os.path.join(dossier, sid + ".json"))
|
||||
except OSError:
|
||||
pass
|
||||
index = {}
|
||||
for sid, c in cb.items():
|
||||
ecrire_atomique(os.path.join(dossier, sid + ".json"), c)
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur