From e842471b9ee1e86163b853fd0d5801983b5d03c2 Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Mon, 26 Jun 2023 22:33:50 +0100 Subject: [PATCH] Use f-strings correctly, not like a big dumb --- RIGS/views/rigboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RIGS/views/rigboard.py b/RIGS/views/rigboard.py index 0f619040..b35da179 100644 --- a/RIGS/views/rigboard.py +++ b/RIGS/views/rigboard.py @@ -395,10 +395,10 @@ class CreateForumThread(generic.base.RedirectView): params = { 'title': str(event), - 'body': 'https://rigs.nottinghamtec.co.uk/event/{}'.format(event.pk, event.pk), + 'body': f'https://rigs.nottinghamtec.co.uk/event/{event.pk}' 'category': 'rig-info' } - return f'https://forum.nottinghamtec.co.uk/new-topic?{}'.format(urllib.parse.urlencode(params)) + return f'https://forum.nottinghamtec.co.uk/new-topic?{urllib.parse.urlencode(params)}' class RecieveForumWebhook(generic.View):