Skip to content

Commit

Permalink
Merge pull request #29 from freezingsaddles/eliminate-six
Browse files Browse the repository at this point in the history
Eliminate six library - not needed in 2025
  • Loading branch information
obscurerichard authored Jan 3, 2025
2 parents 9e1f958 + 4bd253e commit 282102a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
16 changes: 8 additions & 8 deletions freezing/nq/api/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ def on_get(self, req: falcon.Request, resp: falcon.Response):

def on_post(self, req: falcon.Request, resp: falcon.Response):
"""
Receives a POSt request from Strava to indicate that an activity has been created or updated.
Receives a POST request (webhook) from Strava to indicate that an activity has been created or updated.
We use stravalib to deserialize this (although the structure is pretty trivial). This will the be published to
beanstalkd (etc.) for picking up by main processing component.
We use stravalib to deserialize this (although the structure is pretty trivial).
This will the be published to beanstalkd (etc.) for picking up by main processing component.
Message payload:
subscription_id = Attribute(six.text_type)
owner_id = Attribute(six.text_type)
object_id = Attribute(six.text_type)
object_type = Attribute(six.text_type)
aspect_type = Attribute(six.text_type)
subscription_id = Attribute(str)
owner_id = Attribute(str)
object_id = Attribute(str)
object_type = Attribute(str)
aspect_type = Attribute(str)
event_time = TimestampAttribute()
See: https://developers.strava.com/docs/webhooks/
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ dependencies = [
"greenstalk==2.0.2",
"gunicorn==22.0.0",
"python-mimeparse==2.0.0",
"six==1.16.0",
]
classifiers = [
"Development Status :: 4 - Beta",
Expand Down

0 comments on commit 282102a

Please sign in to comment.