From 2ca4cf074ed6692f208493a1a8276a2b47fd4553 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Thu, 11 Dec 2025 14:56:08 -0800 Subject: [PATCH] Remove spurious env params in examples --- 01-hello/src/entry.py | 2 +- 08-cron/src/entry.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/01-hello/src/entry.py b/01-hello/src/entry.py index 1938022..8bdd647 100644 --- a/01-hello/src/entry.py +++ b/01-hello/src/entry.py @@ -2,5 +2,5 @@ class Default(WorkerEntrypoint): - async def fetch(self, request, env): + async def fetch(self, request): return Response("Hello world!") diff --git a/08-cron/src/entry.py b/08-cron/src/entry.py index a8e59b3..41dd5f4 100644 --- a/08-cron/src/entry.py +++ b/08-cron/src/entry.py @@ -3,7 +3,7 @@ class Default(WorkerEntrypoint): # runs based on "triggers" in wrangler config - async def scheduled(self, controller, env, ctx): + async def scheduled(self, controller): print("Scheduled task has been executed.") async def fetch(self):