From 9f9a8e76f5b0cc7e189e0a7f69612543cef044a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20L=C3=B6sche?= Date: Wed, 9 Oct 2024 22:41:38 +0200 Subject: [PATCH] Update field name --- fixattiosync/__init__.py | 2 +- fixattiosync/attioresources.py | 2 +- fixattiosync/fixresources.py | 2 +- pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fixattiosync/__init__.py b/fixattiosync/__init__.py index 2841050..b44b011 100644 --- a/fixattiosync/__init__.py +++ b/fixattiosync/__init__.py @@ -11,4 +11,4 @@ __author__ = "Some Engineering Inc." __license__ = "AGPL-3.0" __copyright__ = "Copyright © 2024 Some Engineering Inc." -__version__ = "0.0.15" +__version__ = "0.0.16" diff --git a/fixattiosync/attioresources.py b/fixattiosync/attioresources.py index 8ffd011..68f1b43 100644 --- a/fixattiosync/attioresources.py +++ b/fixattiosync/attioresources.py @@ -224,7 +224,7 @@ def make(cls: Type[Self], data: dict[str, Any]) -> Self: if registered_at: registered_at = datetime.fromisoformat(registered_at).replace(microsecond=0) - last_active_at = get_nested_field(values, "last_active_at", ["value"]) + last_active_at = get_nested_field(values, "last_activity_3", ["value"]) if last_active_at: last_active_at = datetime.fromisoformat(last_active_at).replace(microsecond=0) diff --git a/fixattiosync/fixresources.py b/fixattiosync/fixresources.py index 20c858d..7fc1fcf 100644 --- a/fixattiosync/fixresources.py +++ b/fixattiosync/fixresources.py @@ -105,7 +105,7 @@ def attio_data( } ) if self.last_active_at is not None: - data["data"]["values"]["last_active_at"] = self.last_active_at.isoformat() + data["data"]["values"]["last_activity_3"] = self.last_active_at.isoformat() if self.user_email_notifications_disabled is not None: data["data"]["values"]["email_notifications_disabled"] = self.user_email_notifications_disabled if self.at_least_one_cloud_account_connected is not None: diff --git a/pyproject.toml b/pyproject.toml index e4950e1..92a991d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "fixattiosync" -version = "0.0.15" +version = "0.0.16" authors = [{name="Some Engineering Inc."}] description = "Fix Attio Sync" license = {file="LICENSE"}