Skip to content

Commit

Permalink
update api export to allow input session id (#178)
Browse files Browse the repository at this point in the history
Co-authored-by: lcduong <[email protected]>
  • Loading branch information
lcduong and odkhang authored Aug 12, 2024
1 parent de4ff4b commit edf7e38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pretalx/agenda/views/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ def get(self, request, *args, **kwargs):

exporter.schedule = self.schedule
if "-my" in exporter.identifier and self.request.user.id is None:
return HttpResponseRedirect(self.request.event.urls.login)
if request.GET.get('talks'):
exporter.talk_ids = request.GET.get('talks').split(',')
else:
return HttpResponseRedirect(self.request.event.urls.login)
favs_talks = SubmissionFavourite.objects.filter(user=self.request.user.id)
if favs_talks.exists():
exporter.talk_ids = favs_talks[0].talk_list
Expand Down

0 comments on commit edf7e38

Please sign in to comment.