From 3d7b416327aae18e8625c251ddf918ca1a3cdf4d Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Tue, 7 Nov 2023 10:52:04 -0800 Subject: [PATCH] include calendar url in urls --- recipes/QRCodeGenerator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/QRCodeGenerator.py b/recipes/QRCodeGenerator.py index ed504bbbc..a6e69e6b3 100644 --- a/recipes/QRCodeGenerator.py +++ b/recipes/QRCodeGenerator.py @@ -560,6 +560,8 @@ def generate_and_upload_qr_code( user: AppUser, ) -> tuple[str, str, bool]: if request.qr_code_vcard: + if request.qr_code_vcard.urls and request.qr_code_vcard.calendar_url: + request.qr_code_vcard.urls += [request.qr_code_vcard.calendar_url] vcf_str = request.qr_code_vcard.to_vcf_str() qr_code_data = ShortenedURL.objects.get_or_create_for_workflow( content=vcf_str,