]> git.cworth.org Git - turbot/blobdiff - turbot/events.py
Rename primary-key attribute from PK to hunt_id
[turbot] / turbot / events.py
index 3b04036f8aafca480b2988ffc76a13c8629ebab5..267d9397a6e2ee6d9336d967bf09561c9e0ca158 100644 (file)
@@ -60,7 +60,7 @@ def hunt_block(turb, hunt):
 
     response = turb.table.query(
         KeyConditionExpression=(
-            Key('PK').eq('hunt-{}'.format(hunt_id)) &
+            Key('hunt_id').eq(hunt_id) &
             Key('SK').begins_with('puzzle-')
         )
     )