Skip to content

Commit

Permalink
Seat of pants marshmallow updates
Browse files Browse the repository at this point in the history
  • Loading branch information
obscurerichard committed Jan 8, 2024
1 parent 48f8a61 commit e23a1e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions freezing/nq/api/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def on_post(self, req: falcon.Request, resp: falcon.Response):
"""

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

# We only care about activities
if result.object_type is not ObjectType.activity:
Expand All @@ -63,7 +63,7 @@ def on_post(self, req: falcon.Request, resp: falcon.Response):
message.operation = result.aspect_type
message.updates = result.updates

json_data = ActivityUpdateSchema().dump(message).data
json_data = ActivityUpdateSchema().dump(message)

log.info("Publishing activity-update: {}".format(message))
self.publisher.publish_message(json_data,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GeoAlchemy @ https://github.com/hozn/GeoAlchemy/archive/0.7.3dev1.tar.gz
arrow==0.15.5
envparse==0.2.0
falcon==2.0.0
freezing-model @ https://github.com/freezingsaddles/freezing-model/archive/0.7.19.tar.gz
freezing-model @ https://github.com/freezingsaddles/freezing-model/archive/0.7.20.tar.gz
greenstalk==1.0.1
gunicorn==20.0.4
python-mimeparse==1.6.0
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.4"
version = "0.3.6"

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

0 comments on commit e23a1e1

Please sign in to comment.