This fixes the home view to correctly use the new single-table schema to
find the list of available hunts. This view is now working to display
the names of active hunts a user belongs to.
(No puzzles are listed yet. That part of the home view still needs to be
brought up to date with the latest schema.)
# Behave cleanly if there is no "turbot" table at all yet.
try:
- response = turb.table.scan()
+ response = turb.table.scan(
+ IndexName="hunt_id_index",
+ )
hunts = response['Items']
except Exception:
hunts = []