blacked files

This commit is contained in:
Gunther Weissenbaeck 2024-02-15 11:38:33 +01:00
parent efa29fec5c
commit dc4836579d
7 changed files with 86 additions and 31 deletions

View file

@ -23,9 +23,12 @@ def export_costs(request):
"costs",
"created",
"comment",
"user__username")
"user__username",
)
response = HttpResponse(content_type="text/csv")
response["Content-Disposition"] = f"attachment, filename=fbf_costs_{today}.csv"
response["Content-Disposition"] = (
f"attachment, filename=fbf_costs_{today}.csv"
)
writer = csv.writer(response)
writer.writerow(
["Vogel", "Betrag in Euro", "Gebucht am", "Kommentar", "Gebucht von"]
@ -54,7 +57,9 @@ def export_birds(request):
"sent_to",
)
response = HttpResponse(content_type="text/csv")
response["Content-Disposition"] = f"attachment, filename=fbf_birds_{today}.csv"
response["Content-Disposition"] = (
f"attachment, filename=fbf_birds_{today}.csv"
)
writer = csv.writer(response)
writer.writerow(
[