feat: Add catogories, FN, website and GEO

This commit is contained in:
2025-06-23 19:21:33 +02:00
parent cd8471036c
commit 7dfcbfe38f
2 changed files with 11 additions and 6 deletions

View File

@@ -118,9 +118,10 @@ def dedup_locations():
def export_orgs_as_vcf():
rescue_orgs = RescueOrganization.objects.filter(phone_number__isnull=False)
result = render_to_string(template_name="fellchensammlung/contacts.vcf",
context={"contacts": rescue_orgs, "current_time": timezone.now()})
context={"contacts": rescue_orgs,
"current_time": timezone.now(),
"categories": "Tierheim"})
filename = "contacts.vcf"
with open(filename, "w") as f:
f.write(result)
print(f"Wrote {len(rescue_orgs)} contacts to {filename}")