Skip to content

Commit

Permalink
Réparation des problèmes de chemin avec la nouvelle architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
Vredeza committed Dec 22, 2023
1 parent c0d457a commit 163a85f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/client_package/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def get_full_id(incomplete_id, server, port):
directories = data.get('directories', [])

# Stocker les correspondances potentielles trouvées
matches = [directory['name'] for directory in directories if incomplete_id in directory['name']]
matches = [directory['id'] for directory in directories if incomplete_id in directory['id']]

# Filtrer les correspondances pour obtenir l'ID complet
full_ids = [match for match in matches if match.startswith(incomplete_id)]
Expand Down
3 changes: 2 additions & 1 deletion serveur/app/saves/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def get_save_by_id(id):
zipf.write(file_path, arcname=os.path.relpath(file_path, save_folder_path))

# Envoyer le fichier ZIP en réponse à la requête GET
return send_file(temp_zip_path, as_attachment=True)
print(f"/app/{temp_zip_path}")
return send_file(f"/app/{temp_zip_path}", as_attachment=True)
else:
return 'Not Found', 404 # Le dossier n'existe pas, renvoie un code 404

Expand Down

0 comments on commit 163a85f

Please sign in to comment.