django-cas-ng / django-cas-ng

Consider using f-strings PYL-C0209
Performance
Minor
2 occurrences in this check
Formatting a regular string which could be a f-string
269            date__lt=(timezone.now() - timedelta(seconds=60))
270        ).delete()
271
272        return HttpResponse("{}\n".format(_('ok')), content_type="text/plain")273
274
275def clean_sessions(client, request):
Formatting a regular string which could be a f-string
253    def post(self, request: HttpRequest) -> HttpResponse:
254        if request.POST.get('logoutRequest'):
255            clean_sessions(get_cas_client(request=request), request)
256            return HttpResponse("{}\n".format(_('ok')), content_type="text/plain")257
258        return HttpResponseBadRequest('Missing logoutRequest')
259