X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=turbot%2Finteraction.py;h=a3fe496c81adb8dc1ceca981c04d3d16a911058e;hb=d63943a1adccccda1ddf43e609701a0615577670;hp=546e59a70a25728b1dcdee92d60f6d5730687fda;hpb=d53959afec8688d3f3c164f1b94de6dbec8bc13c;p=turbot diff --git a/turbot/interaction.py b/turbot/interaction.py index 546e59a..a3fe496 100644 --- a/turbot/interaction.py +++ b/turbot/interaction.py @@ -572,7 +572,8 @@ def new_hunt_submission(turb, payload, metadata): {'AttributeName': 'SK', 'AttributeType': 'S'}, {'AttributeName': 'channel_id', 'AttributeType': 'S'}, {'AttributeName': 'is_hunt', 'AttributeType': 'S'}, - {'AttributeName': 'url', 'AttributeType': 'S'} + {'AttributeName': 'url', 'AttributeType': 'S'}, + {'AttributeName': 'puzzle_id', 'AttributeType': 'S'} ], ProvisionedThroughput={ 'ReadCapacityUnits': 5, @@ -616,6 +617,16 @@ def new_hunt_submission(turb, payload, metadata): 'Projection': { 'ProjectionType': 'ALL' } + }, + { + 'IndexName': 'puzzle_id_index', + 'KeySchema': [ + {'AttributeName': 'hunt_id', 'KeyType': 'HASH'}, + {'AttributeName': 'puzzle_id', 'KeyType': 'RANGE'}, + ], + 'Projection': { + 'ProjectionType': 'ALL' + } } ] )