This commit is contained in:
Tykayn 2024-07-08 23:03:37 +02:00 committed by tykayn
parent ade5d01f22
commit 85ae467de2
1 changed files with 6 additions and 3 deletions

View File

@ -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