Skip to content

Commit

Permalink
Issue #5 fix bug in handle_infractions in put_events
Browse files Browse the repository at this point in the history
  • Loading branch information
cschneider-vertical-relevance committed May 3, 2022
1 parent d65dd4c commit e045945
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions supplementary_files/lambdas/handle_infraction/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
eb = boto3.client('events')

def update_item(*,
table,
pk,
sk,
table:str,
pk:str,
sk:str,
attributes:dict[str,str]
):

Expand Down Expand Up @@ -56,8 +56,8 @@ def ddb_compatible_type(Item):
return True

def put_event_entry(*,
event_bus_name,
source,
event_bus_name:str,
source:str,
detail:dict
):
try:
Expand All @@ -67,7 +67,7 @@ def put_event_entry(*,
'EventBusName':event_bus_name,
'Detail':json.dumps(detail),
'DetailType':os.environ.get('AWS_LAMBDA_FUNCTION_NAME'),
'source':source,
'Source':source,
}
]
)
Expand Down

0 comments on commit e045945

Please sign in to comment.