From 76c31b463ece2cc709996a1889f3f221d0eef10b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 14 Sep 2019 19:40:47 +0100 Subject: [PATCH] Too many ors --- webinterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index acb29b807..90b315a3e 100644 --- a/webinterface.py +++ b/webinterface.py @@ -52,7 +52,7 @@ def updateAvatarImageCache(session,baseDir: str,httpPrefix: str,actor: str,avata sessionHeaders = {'Accept': 'image/png'} avatarImageFilename=baseDir+'/cache/avatars/'+actor.replace('/','-')+'.png' elif avatarUrl.endswith('.jpg') or avatarUrl.endswith('.jpeg') or \ - or '.jpg?' in avatarUrl or '.jpeg?' in avatarUrl: + '.jpg?' in avatarUrl or '.jpeg?' in avatarUrl: sessionHeaders = {'Accept': 'image/jpeg'} avatarImageFilename=baseDir+'/cache/avatars/'+actor.replace('/','-')+'.jpg' elif avatarUrl.endswith('.gif') or '.gif?' in avatarUrl: