Skip to content

Commit 10946d4

Browse files
Merge pull request #23 from rustprooflabs/pg17-default
Bump default versions to compare Pg16 & Pg17
2 parents d621262 + 6efcb1a commit 10946d4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

webapp/routes.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
LOGGER = logging.getLogger(__name__)
99

1010

11+
VERSION_PRIOR = '16'
12+
VERSION_CURRENT = '17'
13+
14+
1115
def get_year():
1216
""" Gets the current year. Used for providing dynamic
1317
copyright year in the footer.
@@ -80,7 +84,7 @@ def view_app_param_changes_v2(vers1, vers2):
8084

8185
@app.route('/param/change')
8286
def redirect_param_change():
83-
return redirect('/param/change/{}/{}'.format('15', '16'))
87+
return redirect('/param/change/{}/{}'.format(VERSION_PRIOR, VERSION_CURRENT))
8488

8589

8690
@app.route('/custom')
@@ -89,7 +93,7 @@ def redirect_custom_with_defaults():
8993
don't just 404 on them. Gives hint at query to run to get the data directly
9094
in their database.
9195
"""
92-
return redirect('/custom/{}'.format('16'))
96+
return redirect('/custom/{}'.format(VERSION_CURRENT))
9397

9498

9599
@app.route('/custom/<vers1>', methods=['GET', 'POST'])

0 commit comments

Comments
 (0)