From e23a1e128b4cb970a9ffb3e921ea0432c8008c7c Mon Sep 17 00:00:00 2001 From: Richard Bullington-McGuire Date: Sun, 7 Jan 2024 23:36:01 -0500 Subject: [PATCH] Seat of pants marshmallow updates --- freezing/nq/api/webhook.py | 4 ++-- requirements.txt | 2 +- setup.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/freezing/nq/api/webhook.py b/freezing/nq/api/webhook.py index 1e9dc0a..cdf9f64 100644 --- a/freezing/nq/api/webhook.py +++ b/freezing/nq/api/webhook.py @@ -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: @@ -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, diff --git a/requirements.txt b/requirements.txt index 4dee61f..b006e02 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/setup.py b/setup.py index 26c5377..478301a 100644 --- a/setup.py +++ b/setup.py @@ -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