Skip to content

Commit

Permalink
only run one file for dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
threnjen committed Oct 18, 2024
1 parent 0ddda98 commit 57f39ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lambda_functions/bgg_scraper_fargate_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ def lambda_handler(event, context):
.get("revision")
)

if ENV != "prod":
file_prefixes = file_prefixes[:1]

for file in file_prefixes:
filename = file.split("/")[-1].split(".")[0]
print(filename)
Expand Down

0 comments on commit 57f39ba

Please sign in to comment.