Skip to content

Commit

Permalink
fix: python build
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrzn committed Feb 18, 2024
1 parent 40ae120 commit cda341d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workers/fund_public_goods/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')

from dataclasses import dataclass
from typing import Any
from typing import Any, Union
from aws_lambda_typing.events import SQSEvent
from aws_lambda_typing.context import Context
from fastapi_events.typing import Event as LocalEvent
Expand Down Expand Up @@ -48,7 +48,7 @@ def sqs_handler(sqs_event: SQSEvent, _: Context):

for record in sqs_event['Records']:
message_body = record['body']
message: dict[str, Any] = json.loads(message_body)
message = json.loads(message_body)
events.append(EventData(
name=message[0],
payload=message[1]
Expand Down

0 comments on commit cda341d

Please sign in to comment.