AKSubmission.api module

AKSubmission.api.ak_interest_indication_active(event, current_timestamp)[source]

Check whether indication of interest is currently allowed for a given event

Parameters:
  • event (Event) – event to check for

  • current_timestamp (datetime) – current timestamp

Returns:

True if indication is allowed, False if not

Return type:

Bool

AKSubmission.api.increment_interest_counter(request, *args, **kwargs)[source]

Increment interest counter for AK

This view either returns an HTTP 200 if the counter was incremented, an HTTP 403 if indicating interest is currently not allowed, or an HTTP 404 if there is no matching AK for the given primary key and event slug.