Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update field name #9

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fixattiosync/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion fixattiosync/attioresources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion fixattiosync/fixresources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"}
Expand Down