Skip to content

Commit 359d753

Browse files
committed
Adjust URL for a page of runs
In the name of shorter URLs, I'd like to omit `/runs/` when a year would follow it. Run URLs are already e.g. `/2018/pyladies-brno-jaro/`, so there should be a `/2018/` URL. (Of course, there's also `/runs/` and `/runs/all/`, so `/runs/2018/` did make sense. A bit less sense, though, IMO.)
1 parent 6b3e81c commit 359d753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

naucse/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def index():
100100

101101

102102
@app.route('/runs/')
103-
@app.route('/runs/<int:year>/')
103+
@app.route('/<int:year>/')
104104
@app.route('/runs/<any(all):all>/')
105105
def runs(year=None, all=None):
106106
today = datetime.date.today()

0 commit comments

Comments
 (0)