mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-16 06:13:33 -06:00
add more text alignment fixes, create "unbuilt" parameter to track and build episodes as needed
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user