add more text alignment fixes, create "unbuilt" parameter to track and build episodes as needed

This commit is contained in:
Xevion
2020-01-22 01:41:32 -06:00
parent 283f15794e
commit 283c4dbcc6
3 changed files with 26 additions and 7 deletions

View File

@@ -12,7 +12,11 @@ def viewSeason(season):
@app.route('/season/<season>/<episode>/')
def viewEpisode(season, episode):
return render_template('episode.html', episode=Episode.query.filter_by(season_id=season, number=episode).first_or_404())
e = Episode.query.filter_by(season_id=season, number=episode).first_or_404()
if not e.built:
print('Rebuilding')
e.build()
return render_template('episode.html', episode=e)
@app.route('/season/<season>/<episode>/rebuild')
def rebuildEpisode(season, episode):