django-cas-ng / django-cas-ng

Consider using f-strings PYL-C0209
Performance
Minor
a year agoa year old
Formatting a regular string which could be a f-string
280            date__lt=(timezone.now() - timedelta(seconds=60))
281        ).delete()
282
283        return HttpResponse("{}\n".format(_('ok')), content_type="text/plain")284
285
286def clean_sessions(client, request):
Formatting a regular string which could be a f-string
264    def post(self, request: HttpRequest) -> HttpResponse:
265        if request.POST.get('logoutRequest'):
266            clean_sessions(get_cas_client(request=request), request)
267            return HttpResponse("{}\n".format(_('ok')), content_type="text/plain")268
269        return HttpResponseBadRequest('Missing logoutRequest')
270