Skip to content

Commit

Permalink
Ditch strict param in model init
Browse files Browse the repository at this point in the history
  • Loading branch information
obscurerichard committed Jan 8, 2024
1 parent 20cf1e5 commit 48f8a61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions freezing/nq/api/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def on_get(self, req: falcon.Request, resp: falcon.Response):

strava_request = {k: req.get_param(k) for k in ('hub.challenge', 'hub.mode', 'hub.verify_token')}

schema = SubscriptionCallbackSchema(strict=True)
schema = SubscriptionCallbackSchema()
callback: SubscriptionCallback = schema.load(strava_request).data
assert config.STRAVA_VERIFY_TOKEN == callback.hub_verify_token

Expand All @@ -49,7 +49,7 @@ def on_post(self, req: falcon.Request, resp: falcon.Response):
See: http://strava.github.io/api/partner/v3/events/
"""

schema = SubscriptionUpdateSchema(strict=True)
schema = SubscriptionUpdateSchema()
result: SubscriptionUpdate = schema.load(req.media).data

# We only care about activities
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from setuptools import setup

version = "0.3.3"
version = "0.3.4"

long_description = """
freezing-nq is the Freezing Saddles component for receiving
Expand Down

0 comments on commit 48f8a61

Please sign in to comment.