Skip to content

Commit

Permalink
chore: add unzip requirements to events.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrzn committed Feb 18, 2024
1 parent 17c2d71 commit b39e9ab
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion workers/fund_public_goods/events.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
try:
import unzip_requirements # type: ignore
except ImportError:
pass

import sys

# Check if the platform is Linux
if sys.platform == "linux":
__import__('pysqlite3')
import sys
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')

from dataclasses import dataclass
from typing import Any, Union
from typing import Any
from aws_lambda_typing.events import SQSEvent
from fastapi_events.typing import Event as LocalEvent
from fastapi_events.handlers.local import local_handler, BaseEventHandler
Expand Down

0 comments on commit b39e9ab

Please sign in to comment.