From 85ae467de2b61941ee57e5196e31c3e490d0ab56 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Mon, 8 Jul 2024 23:03:37 +0200 Subject: [PATCH] batch up --- mapillary_sequences_userscript/batch_get_username.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mapillary_sequences_userscript/batch_get_username.sh b/mapillary_sequences_userscript/batch_get_username.sh index 52159f55..9c7069e8 100644 --- a/mapillary_sequences_userscript/batch_get_username.sh +++ b/mapillary_sequences_userscript/batch_get_username.sh @@ -1,9 +1,10 @@ +#!/bin/bash # récupérer les séquences pour un tas d'utilisateurs -#!/bin/bash # Liste des usernames -usernames=("gotpo" "romelito" "julessgds" "evaseignanx" "fost" "ciutadavng" "yopasepor" "jasskum" "jonnymccullagh" "reisender" "derfred" "zlphr" "gatpro" "heilbron" "h4n5antw") +usernames=("pasq_fr" "gotpo" "romelito" "julessgds" "evaseignanx" "fost" "ciutadavng" "yopasepor" "jasskum" "jonnymccullagh" "reisender" "derfred" "zlphr" "gatpro" "heilbron" "h4n5antw") +#usernames=("evaseignanx" ) source secrets_variables.sh @@ -19,9 +20,11 @@ echo "---------- utilisateur: $username" # Vérifier si le fichier sequences_$username.txt existe if [ ! -f "sequences_$username.txt" ]; then python3 get_sequences_of_username.py --username="$username" --dev_token="$MAPILLARY_DEV_TOKEN" --max_sequence=9999 + else + echo "le fichier sequences txt existe pour $username" fi # Lancer la commande pour chaque username if [ ! -f "script_bash_get_sequences_for_user_$username.sh" ]; then - python3 text_array_to_download_script.py --username=eric_s --dev_token="$MAPILLARY_DEV_TOKEN" + python3 text_array_to_download_script.py --username=$username --dev_token="$MAPILLARY_DEV_TOKEN" fi done