Silly duplication

main
Bob Mottram 2019-11-14 13:50:25 +00:00
parent b8f9029eaa
commit 4e7655820e
1 changed files with 5 additions and 5 deletions

View File

@ -709,18 +709,18 @@ def htmlLogin(translate: {},baseDir: str,autocomplete=True) -> str:
loginImage='login.png'
loginImageFilename=None
if os.path.isfile(os.path.isfile(baseDir+'/accounts/'+loginImage)):
if os.path.isfile(baseDir+'/accounts/'+loginImage):
loginImageFilename=baseDir+'/accounts/'+loginImage
if os.path.isfile(os.path.isfile(baseDir+'/accounts/login.jpg')):
if os.path.isfile(baseDir+'/accounts/login.jpg'):
loginImage='login.jpg'
loginImageFilename=baseDir+'/accounts/'+loginImage
if os.path.isfile(os.path.isfile(baseDir+'/accounts/login.jpeg')):
if os.path.isfile(baseDir+'/accounts/login.jpeg'):
loginImage='login.jpeg'
loginImageFilename=baseDir+'/accounts/'+loginImage
if os.path.isfile(os.path.isfile(baseDir+'/accounts/login.gif')):
if os.path.isfile(baseDir+'/accounts/login.gif'):
loginImage='login.gif'
loginImageFilename=baseDir+'/accounts/'+loginImage
if os.path.isfile(os.path.isfile(baseDir+'/accounts/login.webp')):
if os.path.isfile(baseDir+'/accounts/login.webp'):
loginImage='login.webp'
loginImageFilename=baseDir+'/accounts/'+loginImage