From 48bfab019f49bbb2b6bda451fafc9e87b5bc35b1 Mon Sep 17 00:00:00 2001 From: Alex38Lyon <55714436+Alex38Lyon@users.noreply.github.com> Date: Wed, 14 Oct 2026 23:35:52 +0200 Subject: [PATCH] update --- Scripts/pyDatatoMergin/pyDatatoMergin.log | 69 +++++++++++++++++++++++ Scripts/pyDatatoMergin/pyDatatoMergin.py | 10 ++-- 2 files changed, 74 insertions(+), 5 deletions(-) diff --git a/Scripts/pyDatatoMergin/pyDatatoMergin.log b/Scripts/pyDatatoMergin/pyDatatoMergin.log index b958992..3e5dd74 100644 --- a/Scripts/pyDatatoMergin/pyDatatoMergin.log +++ b/Scripts/pyDatatoMergin/pyDatatoMergin.log @@ -274,3 +274,72 @@ 2026-10-14 23:32:47,635 - INFO - Tests/areas2dMasked.gpkg 4.531 Mo 2026-10-14 23:32:47,636 - INFO - karstpro_etude.json 0.001 Mo 2026-10-14 23:32:47,636 - INFO - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +2026-10-14 23:35:27,020 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:35:27,025 - INFO - INFORMATIONS DU PROJET MERGIN MAPS +2026-10-14 23:35:27,025 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:35:27,174 - INFO - Projet : ARR +2026-10-14 23:35:27,175 - INFO - Identifiant : 1707d35a-d99f-47a9-a714-519d7d9c147e +2026-10-14 23:35:27,175 - INFO - Version : v17 +2026-10-14 23:35:27,175 - INFO - Créé le : 2026-08-19T09:31:30Z +2026-10-14 23:35:27,175 - INFO - Mis à jour : 2026-10-14T08:39:10Z +2026-10-14 23:35:27,176 - INFO - Taille totale : 128415971 Octets +2026-10-14 23:35:27,176 - INFO - Public : True +2026-10-14 23:35:27,176 - INFO - Nbre de fichiers : 14 +2026-10-14 23:35:27,177 - INFO - Taille totale : 122.47 Mo +2026-10-14 23:35:27,177 - INFO - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +2026-10-14 23:35:27,177 - INFO - 20260819_115533.jpeg 2.632 Mo +2026-10-14 23:35:27,178 - INFO - ARR.gpkg 93.309 Mo +2026-10-14 23:35:27,178 - INFO - ARR.qgs 0.713 Mo +2026-10-14 23:35:27,178 - INFO - ARR_attachments.zip 0.002 Mo +2026-10-14 23:35:27,178 - INFO - Inventaire Cavités.gpkg 0.660 Mo +2026-10-14 23:35:27,179 - INFO - JPEG_20260819_113638_3152669861975410066.jpg 3.024 Mo +2026-10-14 23:35:27,179 - INFO - JPEG_20260819_113919_5886287470656202827.jpg 3.034 Mo +2026-10-14 23:35:27,179 - INFO - JPEG_20260819_121951_8365685850227103103.jpg 2.974 Mo +2026-10-14 23:35:27,180 - INFO - JPEG_20260819_122929_1446792337025110147.jpg 3.007 Mo +2026-10-14 23:35:27,180 - INFO - JPEG_20260819_123117_33265926990508961.jpg 2.516 Mo +2026-10-14 23:35:27,180 - INFO - JPEG_20260819_124915_3186813976814177670.jpg 2.899 Mo +2026-10-14 23:35:27,180 - INFO - JPEG_20260819_125124_7007318829424129864.jpg 3.165 Mo +2026-10-14 23:35:27,181 - INFO - Tests/areas2dMasked.gpkg 4.531 Mo +2026-10-14 23:35:27,181 - INFO - karstpro_etude.json 0.001 Mo +2026-10-14 23:35:27,181 - INFO - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +2026-10-14 23:35:27,182 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:35:27,182 - INFO - Envoi des données GitHub vers Mergin Maps +2026-10-14 23:35:27,182 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:35:27,184 - INFO - [1/5] Téléchargement desfichiers depuis le GitHub : Alex38Lyon/Synthese-PSM_LARRA@main:Outputs/SHP/QGis_GPKG_Files/areas2dMasked.gpkg +2026-10-14 23:35:27,537 - INFO - Téléchargement GitHub : Alex38Lyon/Synthese-PSM_LARRA/main, chemin Outputs/SHP/QGis_GPKG_Files/areas2dMasked.gpkg +2026-10-14 23:35:28,829 - INFO - Téléchargement GitHub terminé : 1 fichier(s), 4751360 octets. +2026-10-14 23:35:28,831 - INFO - [2/5] Synchronisation du projet local existant : D:\08_GitHub\Synthese-PSM_LARRA\Scripts\pyDatatoMergin\Temp_mergin\Projet +2026-10-14 23:35:29,789 - INFO - [3/5] Copie des fichiers D:\08_GitHub\Synthese-PSM_LARRA\Scripts\pyDatatoMergin\Temp_mergin\Github\areas2dMasked.gpkg +2026-10-14 23:35:29,798 - INFO - + Tests\areas2dMasked.gpkg +2026-10-14 23:35:29,798 - INFO - [4/5] Push vers Mergin Maps... +2026-10-14 23:35:30,133 - WARNING - Aucune modification à envoyer. +2026-10-14 23:35:30,134 - INFO - [5/5] Push terminé. Nettoyage... +2026-10-14 23:35:30,135 - INFO - Envoi terminé avec succès. +2026-10-14 23:35:30,135 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:35:30,136 - INFO - INFORMATIONS DU PROJET MERGIN MAPS +2026-10-14 23:35:30,136 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:35:30,282 - INFO - Projet : ARR +2026-10-14 23:35:30,282 - INFO - Identifiant : 1707d35a-d99f-47a9-a714-519d7d9c147e +2026-10-14 23:35:30,283 - INFO - Version : v17 +2026-10-14 23:35:30,283 - INFO - Créé le : 2026-08-19T09:31:30Z +2026-10-14 23:35:30,283 - INFO - Mis à jour : 2026-10-14T08:39:10Z +2026-10-14 23:35:30,284 - INFO - Taille totale : 128415971 Octets +2026-10-14 23:35:30,285 - INFO - Public : True +2026-10-14 23:35:30,285 - INFO - Nbre de fichiers : 14 +2026-10-14 23:35:30,286 - INFO - Taille totale : 122.47 Mo +2026-10-14 23:35:30,287 - INFO - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +2026-10-14 23:35:30,287 - INFO - 20260819_115533.jpeg 2.632 Mo +2026-10-14 23:35:30,288 - INFO - ARR.gpkg 93.309 Mo +2026-10-14 23:35:30,288 - INFO - ARR.qgs 0.713 Mo +2026-10-14 23:35:30,289 - INFO - ARR_attachments.zip 0.002 Mo +2026-10-14 23:35:30,289 - INFO - Inventaire Cavités.gpkg 0.660 Mo +2026-10-14 23:35:30,290 - INFO - JPEG_20260819_113638_3152669861975410066.jpg 3.024 Mo +2026-10-14 23:35:30,291 - INFO - JPEG_20260819_113919_5886287470656202827.jpg 3.034 Mo +2026-10-14 23:35:30,291 - INFO - JPEG_20260819_121951_8365685850227103103.jpg 2.974 Mo +2026-10-14 23:35:30,292 - INFO - JPEG_20260819_122929_1446792337025110147.jpg 3.007 Mo +2026-10-14 23:35:30,293 - INFO - JPEG_20260819_123117_33265926990508961.jpg 2.516 Mo +2026-10-14 23:35:30,293 - INFO - JPEG_20260819_124915_3186813976814177670.jpg 2.899 Mo +2026-10-14 23:35:30,294 - INFO - JPEG_20260819_125124_7007318829424129864.jpg 3.165 Mo +2026-10-14 23:35:30,294 - INFO - Tests/areas2dMasked.gpkg 4.531 Mo +2026-10-14 23:35:30,294 - INFO - karstpro_etude.json 0.001 Mo +2026-10-14 23:35:30,295 - INFO - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/Scripts/pyDatatoMergin/pyDatatoMergin.py b/Scripts/pyDatatoMergin/pyDatatoMergin.py index 70aeabf..7de27c2 100644 --- a/Scripts/pyDatatoMergin/pyDatatoMergin.py +++ b/Scripts/pyDatatoMergin/pyDatatoMergin.py @@ -41,9 +41,9 @@ def suivre_transfert(job, verifier, titre: str) -> None: return precedent = 0 - interactif = sys.stdout.isatty() and sys.stderr.isatty() and os.environ.get("TERM", "").lower() != "dumb" + # interactif = sys.stdout.isatty() and sys.stderr.isatty() and os.environ.get("TERM", "").lower() != "dumb" - if interactif: + if INTERACTIF: with alive_bar(taille_totale, title=f"{Colors.YELLOW}{titre}{Colors.ENDC}", stats=True, dual_line=True, scale="SI", unit="o") as barre: while verifier(job): actuel = job.transferred_size @@ -192,7 +192,7 @@ def telecharger_depuis_github(depot: str, branche: str, chemin: str, dossier_cib base = chemin.rpartition("/")[0] if est_fichier else chemin total = sum(f.get("size", 0) for f in fichiers) or None - interactif = sys.stdout.isatty() and sys.stderr.isatty() and os.environ.get("TERM", "").lower() != "dumb" + # interactif = sys.stdout.isatty() and sys.stderr.isatty() and os.environ.get("TERM", "").lower() != "dumb" precedent = 0 def telecharger_fichiers(barre=None) -> None: @@ -226,7 +226,7 @@ def telecharger_depuis_github(depot: str, branche: str, chemin: str, dossier_cib f"Téléchargement GitHub : {Colors.ENDC}{depot}{Colors.INFO}/{Colors.ENDC}{branche}{Colors.INFO}, chemin {Colors.ENDC}{chemin or '/'}{Colors.INFO}" ) - if interactif and total: + if INTERACTIF and total: with alive_bar(total, title=f"{Colors.YELLOW}Téléchargement GitHub{Colors.ENDC}", stats=True, scale="SI", unit="o") as barre: telecharger_fichiers(barre) else: @@ -481,7 +481,7 @@ if __name__ == "__main__": elif os.environ.get("TERM"): subprocess.run(["clear"], check=False) - print(f"stdout={sys.stdout.isatty()}, stderr={sys.stderr.isatty()}, TERM={os.environ.get('TERM')!r}, interactif={INTERACTIF}", file=sys.stderr) + # print(f"stdout={sys.stdout.isatty()}, stderr={sys.stderr.isatty()}, TERM={os.environ.get('TERM')!r}, interactif={INTERACTIF}", file=sys.stderr) parser = argparse.ArgumentParser(description="Envoi de fichiers vers Mergin Maps") # parser.add_argument("--source", required=True, help="Dossier contenant les fichiers à envoyer")