Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian leggett committed Oct 29, 2024
1 parent 45bb886 commit 374c354
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions dataworkspace/dataworkspace/apps/request_access/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,11 @@ def get(self, request, *args, **kwargs):
and catalogue_item.request_approvers is not None
and len(catalogue_item.request_approvers) > 0
):
print('yay')
# access_request.zendesk_reference_number = zendesk.notify_dataset_access_request(
# request,
# access_request,
# catalogue_item,
# )
access_request.zendesk_reference_number = zendesk.notify_dataset_access_request(
request,
access_request,
catalogue_item,
)
elif (
isinstance(catalogue_item, VisualisationCatalogueItem)
and catalogue_item.request_approvers is not None
Expand All @@ -235,12 +234,11 @@ def get(self, request, *args, **kwargs):
)

else:
print('mooooooooooo')
# access_request.zendesk_reference_number = zendesk.create_zendesk_ticket(
# request,
# access_request,
# catalogue_item,
# )
access_request.zendesk_reference_number = zendesk.create_zendesk_ticket(
request,
access_request,
catalogue_item,
)
access_request.save()

if catalogue_item:
Expand Down

0 comments on commit 374c354

Please sign in to comment.