Skip to content

Commit 368540a

Browse files
authored
Update field name (#9)
1 parent 46e08e0 commit 368540a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

fixattiosync/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
__author__ = "Some Engineering Inc."
1212
__license__ = "AGPL-3.0"
1313
__copyright__ = "Copyright © 2024 Some Engineering Inc."
14-
__version__ = "0.0.15"
14+
__version__ = "0.0.16"

fixattiosync/attioresources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def make(cls: Type[Self], data: dict[str, Any]) -> Self:
224224
if registered_at:
225225
registered_at = datetime.fromisoformat(registered_at).replace(microsecond=0)
226226

227-
last_active_at = get_nested_field(values, "last_active_at", ["value"])
227+
last_active_at = get_nested_field(values, "last_activity_3", ["value"])
228228
if last_active_at:
229229
last_active_at = datetime.fromisoformat(last_active_at).replace(microsecond=0)
230230

fixattiosync/fixresources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def attio_data(
105105
}
106106
)
107107
if self.last_active_at is not None:
108-
data["data"]["values"]["last_active_at"] = self.last_active_at.isoformat()
108+
data["data"]["values"]["last_activity_3"] = self.last_active_at.isoformat()
109109
if self.user_email_notifications_disabled is not None:
110110
data["data"]["values"]["email_notifications_disabled"] = self.user_email_notifications_disabled
111111
if self.at_least_one_cloud_account_connected is not None:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "fixattiosync"
3-
version = "0.0.15"
3+
version = "0.0.16"
44
authors = [{name="Some Engineering Inc."}]
55
description = "Fix Attio Sync"
66
license = {file="LICENSE"}

0 commit comments

Comments
 (0)