Skip to content

Commit

Permalink
include calendar url in urls
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderGi committed Nov 7, 2023
1 parent ecdfe8c commit 3d7b416
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/QRCodeGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3d7b416

Please sign in to comment.