Skip to content
Snippets Groups Projects
Commit 9606cdcd authored by JOUNEAU Thomas's avatar JOUNEAU Thomas
Browse files

Replace get_batch_dataset_metadata_with_subcollections.py

parent a8d35a4e
No related branches found
No related tags found
No related merge requests found
......@@ -158,9 +158,10 @@ if file_wished_input == "o":
file_wished = True
print("Un fichier va être créé.")
complete_list_file_name_input = input("Choisissez un nom de fichier pour la sortie, sans l'extension. Défaut [export_json]: ")
if complete_list_file_name == "":
complete_list_file_name = "export_json"
complete_list_file_name = f"{complete_list_file_name_input}.json"
if complete_list_file_name_input == "":
complete_list_file_name = "export_json.json"
else :
complete_list_file_name = f"{complete_list_file_name_input}.json"
with open (complete_list_file_name, 'a') as complete_list_file_object:
complete_list_file_object.write("{") # ajout d'une accolade ouvrante au début du fichier
elif file_wished_input == "":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment