1 Commits

Author SHA1 Message Date
61f2126c1b feat: Change default redirect to Adults dashboard
All checks were successful
Build and Push / build (push) Successful in 8s
Deploy to K8s / deploy (push) Successful in 12s
Co-authored-by: Antigravity <antigravity@google.com>
2026-03-11 13:13:05 +01:00
2 changed files with 3 additions and 3 deletions

4
app.py
View File

@@ -105,8 +105,8 @@ def inject_render_time():
@app.route("/") @app.route("/")
def index(): def index():
# Redirect root to /fees for convenience while there are no other apps # Redirect root to /adults for convenience while there are no other apps
return '<meta http-equiv="refresh" content="0; url=/fees" />' return '<meta http-equiv="refresh" content="0; url=/adults" />'
@app.route("/fees") @app.route("/fees")
def fees(): def fees():

View File

@@ -17,7 +17,7 @@ class TestWebApp(unittest.TestCase):
"""Test that / returns the refresh meta tag""" """Test that / returns the refresh meta tag"""
response = self.client.get('/') response = self.client.get('/')
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
self.assertIn(b'url=/fees', response.data) self.assertIn(b'url=/adults', response.data)
@patch('app.get_cached_data', side_effect=_bypass_cache) @patch('app.get_cached_data', side_effect=_bypass_cache)
@patch('app.get_members_with_fees') @patch('app.get_members_with_fees')