From 3ea4b3b2315c0e8e35841ba2ecbb7b443a06d6bd Mon Sep 17 00:00:00 2001 From: Alex38Lyon <55714436+Alex38Lyon@users.noreply.github.com> Date: Wed, 14 Oct 2026 23:50:24 +0200 Subject: [PATCH] update --- Scripts/pyDatatoMergin/pyDatatoMergin.log | 69 +++++++++++++++++++++++ Scripts/pyDatatoMergin/pyDatatoMergin.py | 4 +- 2 files changed, 71 insertions(+), 2 deletions(-) diff --git a/Scripts/pyDatatoMergin/pyDatatoMergin.log b/Scripts/pyDatatoMergin/pyDatatoMergin.log index 3e5dd74..780ff20 100644 --- a/Scripts/pyDatatoMergin/pyDatatoMergin.log +++ b/Scripts/pyDatatoMergin/pyDatatoMergin.log @@ -343,3 +343,72 @@ 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 - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +2026-10-14 23:44:36,190 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:44:36,190 - INFO - INFORMATIONS DU PROJET MERGIN MAPS +2026-10-14 23:44:36,191 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:44:36,335 - INFO - Projet : ARR +2026-10-14 23:44:36,335 - INFO - Identifiant : 1707d35a-d99f-47a9-a714-519d7d9c147e +2026-10-14 23:44:36,336 - INFO - Version : v17 +2026-10-14 23:44:36,336 - INFO - Créé le : 2026-08-19T09:31:30Z +2026-10-14 23:44:36,336 - INFO - Mis à jour : 2026-10-14T08:39:10Z +2026-10-14 23:44:36,337 - INFO - Taille totale : 128415971 Octets +2026-10-14 23:44:36,337 - INFO - Public : True +2026-10-14 23:44:36,337 - INFO - Nbre de fichiers : 14 +2026-10-14 23:44:36,338 - INFO - Taille totale : 122.47 Mo +2026-10-14 23:44:36,338 - INFO - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +2026-10-14 23:44:36,338 - INFO - 20260819_115533.jpeg 2.632 Mo +2026-10-14 23:44:36,338 - INFO - ARR.gpkg 93.309 Mo +2026-10-14 23:44:36,339 - INFO - ARR.qgs 0.713 Mo +2026-10-14 23:44:36,339 - INFO - ARR_attachments.zip 0.002 Mo +2026-10-14 23:44:36,339 - INFO - Inventaire Cavités.gpkg 0.660 Mo +2026-10-14 23:44:36,340 - INFO - JPEG_20260819_113638_3152669861975410066.jpg 3.024 Mo +2026-10-14 23:44:36,340 - INFO - JPEG_20260819_113919_5886287470656202827.jpg 3.034 Mo +2026-10-14 23:44:36,340 - INFO - JPEG_20260819_121951_8365685850227103103.jpg 2.974 Mo +2026-10-14 23:44:36,341 - INFO - JPEG_20260819_122929_1446792337025110147.jpg 3.007 Mo +2026-10-14 23:44:36,341 - INFO - JPEG_20260819_123117_33265926990508961.jpg 2.516 Mo +2026-10-14 23:44:36,341 - INFO - JPEG_20260819_124915_3186813976814177670.jpg 2.899 Mo +2026-10-14 23:44:36,341 - INFO - JPEG_20260819_125124_7007318829424129864.jpg 3.165 Mo +2026-10-14 23:44:36,342 - INFO - Tests/areas2dMasked.gpkg 4.531 Mo +2026-10-14 23:44:36,342 - INFO - karstpro_etude.json 0.001 Mo +2026-10-14 23:44:36,342 - INFO - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +2026-10-14 23:44:36,342 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:44:36,343 - INFO - Envoi des données GitHub vers Mergin Maps +2026-10-14 23:44:36,343 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:44:36,344 - 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:44:36,666 - INFO - Téléchargement GitHub : Alex38Lyon/Synthese-PSM_LARRA/main, chemin Outputs/SHP/QGis_GPKG_Files/areas2dMasked.gpkg +2026-10-14 23:44:38,124 - INFO - Téléchargement GitHub terminé : 1 fichier(s), 4751360 octets. +2026-10-14 23:44:38,128 - INFO - [2/5] Téléchargement initial du projet : D:\08_GitHub\Synthese-PSM_LARRA\Scripts\pyDatatoMergin\Temp_mergin\Projet +2026-10-14 23:45:04,989 - INFO - [3/5] Copie des fichiers D:\08_GitHub\Synthese-PSM_LARRA\Scripts\pyDatatoMergin\Temp_mergin\Github\areas2dMasked.gpkg +2026-10-14 23:45:04,994 - INFO - + Tests\areas2dMasked.gpkg +2026-10-14 23:45:04,994 - INFO - [4/5] Push vers Mergin Maps... +2026-10-14 23:45:05,498 - WARNING - Aucune modification à envoyer. +2026-10-14 23:45:05,498 - INFO - [5/5] Push terminé. Nettoyage... +2026-10-14 23:45:05,500 - INFO - Envoi terminé avec succès. +2026-10-14 23:45:05,500 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:45:05,500 - INFO - INFORMATIONS DU PROJET MERGIN MAPS +2026-10-14 23:45:05,501 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:45:05,651 - INFO - Projet : ARR +2026-10-14 23:45:05,651 - INFO - Identifiant : 1707d35a-d99f-47a9-a714-519d7d9c147e +2026-10-14 23:45:05,651 - INFO - Version : v17 +2026-10-14 23:45:05,651 - INFO - Créé le : 2026-08-19T09:31:30Z +2026-10-14 23:45:05,651 - INFO - Mis à jour : 2026-10-14T08:39:10Z +2026-10-14 23:45:05,652 - INFO - Taille totale : 128415971 Octets +2026-10-14 23:45:05,652 - INFO - Public : True +2026-10-14 23:45:05,652 - INFO - Nbre de fichiers : 14 +2026-10-14 23:45:05,652 - INFO - Taille totale : 122.47 Mo +2026-10-14 23:45:05,652 - INFO - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +2026-10-14 23:45:05,652 - INFO - 20260819_115533.jpeg 2.632 Mo +2026-10-14 23:45:05,653 - INFO - ARR.gpkg 93.309 Mo +2026-10-14 23:45:05,653 - INFO - ARR.qgs 0.713 Mo +2026-10-14 23:45:05,653 - INFO - ARR_attachments.zip 0.002 Mo +2026-10-14 23:45:05,653 - INFO - Inventaire Cavités.gpkg 0.660 Mo +2026-10-14 23:45:05,653 - INFO - JPEG_20260819_113638_3152669861975410066.jpg 3.024 Mo +2026-10-14 23:45:05,653 - INFO - JPEG_20260819_113919_5886287470656202827.jpg 3.034 Mo +2026-10-14 23:45:05,654 - INFO - JPEG_20260819_121951_8365685850227103103.jpg 2.974 Mo +2026-10-14 23:45:05,654 - INFO - JPEG_20260819_122929_1446792337025110147.jpg 3.007 Mo +2026-10-14 23:45:05,654 - INFO - JPEG_20260819_123117_33265926990508961.jpg 2.516 Mo +2026-10-14 23:45:05,654 - INFO - JPEG_20260819_124915_3186813976814177670.jpg 2.899 Mo +2026-10-14 23:45:05,654 - INFO - JPEG_20260819_125124_7007318829424129864.jpg 3.165 Mo +2026-10-14 23:45:05,654 - INFO - Tests/areas2dMasked.gpkg 4.531 Mo +2026-10-14 23:45:05,655 - INFO - karstpro_etude.json 0.001 Mo +2026-10-14 23:45:05,655 - INFO - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/Scripts/pyDatatoMergin/pyDatatoMergin.py b/Scripts/pyDatatoMergin/pyDatatoMergin.py index 31e2ad1..9fde37c 100644 --- a/Scripts/pyDatatoMergin/pyDatatoMergin.py +++ b/Scripts/pyDatatoMergin/pyDatatoMergin.py @@ -41,7 +41,7 @@ def suivre_transfert(job, verifier, titre: str) -> None: return precedent = 0 - interactif = os.environ.get("TERM", "").lower() != "none" + interactif = sys.stdout.isatty() and sys.stderr.isatty() and os.environ.get("TERM", "").lower() != "dumb" 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: @@ -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 = os.environ.get("TERM", "").lower() != "none" + interactif = sys.stdout.isatty() and sys.stderr.isatty() and os.environ.get("TERM", "").lower() != "dumb" precedent = 0 def telecharger_fichiers(barre=None) -> None: