mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-28 10:52:16 +00:00
Fix url
This commit is contained in:
@@ -417,7 +417,7 @@ class RecieveForumWebhook(generic.View):
|
|||||||
event_id = int(body['topic']['title'][1:5]) # find the ID, force convert it to an int to eliminate leading zeros
|
event_id = int(body['topic']['title'][1:5]) # find the ID, force convert it to an int to eliminate leading zeros
|
||||||
event = models.Event.objects.filter(pk=event_id).first()
|
event = models.Event.objects.filter(pk=event_id).first()
|
||||||
if event:
|
if event:
|
||||||
event.forum_url = "https://forum.nottinghamtec.co.uk/t/{}"
|
event.forum_url = f"https://forum.nottinghamtec.co.uk/t/{body['topic']['slug']}"
|
||||||
event.save()
|
event.save()
|
||||||
return HttpResponse(status=202)
|
return HttpResponse(status=202)
|
||||||
return HttpResponse(status=204)
|
return HttpResponse(status=204)
|
||||||
|
|||||||
Reference in New Issue
Block a user