diff --git a/Scripts/pyDatatoMergin/Lib/Librairies.py b/Scripts/pyDatatoMergin/Lib/Librairies.py index 1126298..7b6d28e 100644 --- a/Scripts/pyDatatoMergin/Lib/Librairies.py +++ b/Scripts/pyDatatoMergin/Lib/Librairies.py @@ -90,7 +90,6 @@ class Colors: UNDERLINE = "\033[4m" -# INTERACTIF = sys.stdout.isatty() and sys.stderr.isatty() INTERACTIF = sys.stdout.isatty() and sys.stderr.isatty() and os.environ.get("TERM", "").lower() != "dumb" diff --git a/Scripts/pyDatatoMergin/pyDatatoMergin.log b/Scripts/pyDatatoMergin/pyDatatoMergin.log index c56378c..4f80a5d 100644 --- a/Scripts/pyDatatoMergin/pyDatatoMergin.log +++ b/Scripts/pyDatatoMergin/pyDatatoMergin.log @@ -67,3 +67,72 @@ 2026-10-14 23:11:22,998 - INFO - Tests/areas2dMasked.gpkg 4.531 Mo 2026-10-14 23:11:22,998 - INFO - karstpro_etude.json 0.001 Mo 2026-10-14 23:11:22,999 - INFO - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +2026-10-14 23:17:13,333 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:17:13,333 - INFO - INFORMATIONS DU PROJET MERGIN MAPS +2026-10-14 23:17:13,333 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:17:13,511 - INFO - Projet : ARR +2026-10-14 23:17:13,511 - INFO - Identifiant : 1707d35a-d99f-47a9-a714-519d7d9c147e +2026-10-14 23:17:13,511 - INFO - Version : v17 +2026-10-14 23:17:13,512 - INFO - Créé le : 2026-08-19T09:31:30Z +2026-10-14 23:17:13,512 - INFO - Mis à jour : 2026-10-14T08:39:10Z +2026-10-14 23:17:13,512 - INFO - Taille totale : 128415971 Octets +2026-10-14 23:17:13,512 - INFO - Public : True +2026-10-14 23:17:13,513 - INFO - Nbre de fichiers : 14 +2026-10-14 23:17:13,513 - INFO - Taille totale : 122.47 Mo +2026-10-14 23:17:13,513 - INFO - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +2026-10-14 23:17:13,513 - INFO - 20260819_115533.jpeg 2.632 Mo +2026-10-14 23:17:13,514 - INFO - ARR.gpkg 93.309 Mo +2026-10-14 23:17:13,514 - INFO - ARR.qgs 0.713 Mo +2026-10-14 23:17:13,514 - INFO - ARR_attachments.zip 0.002 Mo +2026-10-14 23:17:13,514 - INFO - Inventaire Cavités.gpkg 0.660 Mo +2026-10-14 23:17:13,515 - INFO - JPEG_20260819_113638_3152669861975410066.jpg 3.024 Mo +2026-10-14 23:17:13,515 - INFO - JPEG_20260819_113919_5886287470656202827.jpg 3.034 Mo +2026-10-14 23:17:13,515 - INFO - JPEG_20260819_121951_8365685850227103103.jpg 2.974 Mo +2026-10-14 23:17:13,515 - INFO - JPEG_20260819_122929_1446792337025110147.jpg 3.007 Mo +2026-10-14 23:17:13,516 - INFO - JPEG_20260819_123117_33265926990508961.jpg 2.516 Mo +2026-10-14 23:17:13,516 - INFO - JPEG_20260819_124915_3186813976814177670.jpg 2.899 Mo +2026-10-14 23:17:13,516 - INFO - JPEG_20260819_125124_7007318829424129864.jpg 3.165 Mo +2026-10-14 23:17:13,516 - INFO - Tests/areas2dMasked.gpkg 4.531 Mo +2026-10-14 23:17:13,517 - INFO - karstpro_etude.json 0.001 Mo +2026-10-14 23:17:13,517 - INFO - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +2026-10-14 23:17:13,517 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:17:13,517 - INFO - Envoi des données GitHub vers Mergin Maps +2026-10-14 23:17:13,518 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:17:13,519 - 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:17:13,936 - INFO - Téléchargement GitHub : Alex38Lyon/Synthese-PSM_LARRA/main, chemin Outputs/SHP/QGis_GPKG_Files/areas2dMasked.gpkg +2026-10-14 23:17:16,346 - INFO - Téléchargement GitHub terminé : 1 fichier(s), 4751360 octets. +2026-10-14 23:17:16,348 - INFO - [2/5] Synchronisation du projet local existant : D:\08_GitHub\Synthese-PSM_LARRA\Scripts\pyDatatoMergin\Temp_mergin\Projet +2026-10-14 23:17:17,119 - INFO - [3/5] Copie des fichiers D:\08_GitHub\Synthese-PSM_LARRA\Scripts\pyDatatoMergin\Temp_mergin\Github\areas2dMasked.gpkg +2026-10-14 23:17:17,125 - INFO - + Tests\areas2dMasked.gpkg +2026-10-14 23:17:17,126 - INFO - [4/5] Push vers Mergin Maps... +2026-10-14 23:17:17,524 - WARNING - Aucune modification à envoyer. +2026-10-14 23:17:17,525 - INFO - [5/5] Push terminé. Nettoyage... +2026-10-14 23:17:17,526 - INFO - Envoi terminé avec succès. +2026-10-14 23:17:17,527 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:17:17,527 - INFO - INFORMATIONS DU PROJET MERGIN MAPS +2026-10-14 23:17:17,527 - INFO - ═══════════════════════════════════════════════════════════════════════════════════════════════ +2026-10-14 23:17:17,673 - INFO - Projet : ARR +2026-10-14 23:17:17,673 - INFO - Identifiant : 1707d35a-d99f-47a9-a714-519d7d9c147e +2026-10-14 23:17:17,674 - INFO - Version : v17 +2026-10-14 23:17:17,674 - INFO - Créé le : 2026-08-19T09:31:30Z +2026-10-14 23:17:17,674 - INFO - Mis à jour : 2026-10-14T08:39:10Z +2026-10-14 23:17:17,674 - INFO - Taille totale : 128415971 Octets +2026-10-14 23:17:17,676 - INFO - Public : True +2026-10-14 23:17:17,676 - INFO - Nbre de fichiers : 14 +2026-10-14 23:17:17,676 - INFO - Taille totale : 122.47 Mo +2026-10-14 23:17:17,676 - INFO - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +2026-10-14 23:17:17,677 - INFO - 20260819_115533.jpeg 2.632 Mo +2026-10-14 23:17:17,677 - INFO - ARR.gpkg 93.309 Mo +2026-10-14 23:17:17,677 - INFO - ARR.qgs 0.713 Mo +2026-10-14 23:17:17,677 - INFO - ARR_attachments.zip 0.002 Mo +2026-10-14 23:17:17,678 - INFO - Inventaire Cavités.gpkg 0.660 Mo +2026-10-14 23:17:17,678 - INFO - JPEG_20260819_113638_3152669861975410066.jpg 3.024 Mo +2026-10-14 23:17:17,678 - INFO - JPEG_20260819_113919_5886287470656202827.jpg 3.034 Mo +2026-10-14 23:17:17,678 - INFO - JPEG_20260819_121951_8365685850227103103.jpg 2.974 Mo +2026-10-14 23:17:17,678 - INFO - JPEG_20260819_122929_1446792337025110147.jpg 3.007 Mo +2026-10-14 23:17:17,679 - INFO - JPEG_20260819_123117_33265926990508961.jpg 2.516 Mo +2026-10-14 23:17:17,679 - INFO - JPEG_20260819_124915_3186813976814177670.jpg 2.899 Mo +2026-10-14 23:17:17,679 - INFO - JPEG_20260819_125124_7007318829424129864.jpg 3.165 Mo +2026-10-14 23:17:17,679 - INFO - Tests/areas2dMasked.gpkg 4.531 Mo +2026-10-14 23:17:17,679 - INFO - karstpro_etude.json 0.001 Mo +2026-10-14 23:17:17,680 - INFO - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/Scripts/pyDatatoMergin/pyDatatoMergin.py b/Scripts/pyDatatoMergin/pyDatatoMergin.py index b31e143..88e41f8 100644 --- a/Scripts/pyDatatoMergin/pyDatatoMergin.py +++ b/Scripts/pyDatatoMergin/pyDatatoMergin.py @@ -34,8 +34,7 @@ def suivre_transfert(job, verifier, titre: str) -> None: return precedent = 0 - # interactif = sys.stdout.isatty() - interactif = sys.stdout.isatty() and sys.stderr.isatty() and bool(os.environ.get("TERM", "")) and os.environ.get("TERM") != "dumb" + 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: @@ -185,8 +184,8 @@ def telecharger_depuis_github(depot: str, branche: str, chemin: str, dossier_cib est_fichier = len(fichiers) == 1 and fichiers[0]["path"] == chemin 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() - interactif = sys.stdout.isatty() and sys.stderr.isatty() and bool(os.environ.get("TERM", "")) and os.environ.get("TERM") != "dumb" + + interactif = sys.stdout.isatty() and sys.stderr.isatty() and os.environ.get("TERM", "").lower() != "dumb" precedent = 0 def telecharger_fichiers(barre=None) -> None: