Skip to content

Commit

Permalink
Fixing exists refrenced before exists
Browse files Browse the repository at this point in the history
  • Loading branch information
dtayme committed Nov 26, 2024
1 parent 8da0646 commit 8dab737
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,14 +407,14 @@ def help():
except:
newdir = 'Can not be converted'
log.debug(newdir)
exists = 'False'
localexists = 'False'
if os.path.exists(newdir) == True:
exists = 'True'
localexists = 'True'
log.debug("PATH EXISTS")
else:
exists = 'False'
localexists = 'False'
log.debug("PATH DOES NOT EXIST")
return render_template('help.html', exists=exists, pagetitle='Help', plex=config, plex_filepath=plex_filepath, filmtitle=filmtitle, newdir=newdir, mpath=mpath, backup_poster=backup_poster, current_poster=current_poster, pageheadding='Help', version=version)
return render_template('help.html', exists=localexists, pagetitle='Help', plex=config, plex_filepath=plex_filepath, filmtitle=filmtitle, newdir=newdir, mpath=mpath, backup_poster=backup_poster, current_poster=current_poster, pageheadding='Help', version=version)


@app.route('/webhook',methods=['POST'])
Expand Down

0 comments on commit 8dab737

Please sign in to comment.