Fix pylint warnings

This commit is contained in:
Oliver Falk
2020-05-06 13:11:21 +02:00
parent 0262ad850f
commit feab5f6156

View File

@@ -106,7 +106,7 @@ class AvatarImageView(TemplateView):
charset=centry['charset'])
# In case no digest at all is provided, return to home page
if not 'digest' in kwargs:
if 'digest' not in kwargs:
return HttpResponseRedirect(reverse_lazy('home'))
if 'd' in request.GET:
@@ -248,7 +248,7 @@ class AvatarImageView(TemplateView):
return response
if str(default) == 'mmng':
mmngimg = mm_ng(hash=kwargs['digest'], size=size)
mmngimg = mm_ng(idhash=kwargs['digest'], size=size)
data = BytesIO()
mmngimg.save(data, 'PNG', quality=JPEG_QUALITY)
data.seek(0)