Compare commits

...

2 Commits

Author SHA1 Message Date
85ae467de2 batch up 2024-07-08 23:03:37 +02:00
ade5d01f22 ignore up 2024-07-08 23:03:27 +02:00
2 changed files with 7 additions and 3 deletions

View File

@ -2,3 +2,4 @@ out*
sequences*.json sequences*.json
sequences*.txt sequences*.txt
secrets_variables.sh secrets_variables.sh
script_bash*

View File

@ -1,9 +1,10 @@
#!/bin/bash
# récupérer les séquences pour un tas d'utilisateurs # récupérer les séquences pour un tas d'utilisateurs
#!/bin/bash
# Liste des usernames # 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 source secrets_variables.sh
@ -19,9 +20,11 @@ echo "---------- utilisateur: $username"
# Vérifier si le fichier sequences_$username.txt existe # Vérifier si le fichier sequences_$username.txt existe
if [ ! -f "sequences_$username.txt" ]; then if [ ! -f "sequences_$username.txt" ]; then
python3 get_sequences_of_username.py --username="$username" --dev_token="$MAPILLARY_DEV_TOKEN" --max_sequence=9999 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 fi
# Lancer la commande pour chaque username # Lancer la commande pour chaque username
if [ ! -f "script_bash_get_sequences_for_user_$username.sh" ]; then 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 fi
done done