]> git.cworth.org Git - turbot/blobdiff - turbot/events.py
Turbot home: Use recently added hunt_id_index to find existing hunts
[turbot] / turbot / events.py
index a118835d3b8eb0b42a5e04f6483abbebaf95a74b..9439a2396be6445ca9eb91c4b882c66b188f5bc1 100644 (file)
@@ -77,7 +77,9 @@ def home(turb, user_id):
 
     # 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 = []