Skip to content

Format datetime for rapidpro context#218

Merged
Mudiwa66 merged 1 commit into
developfrom
fix-date-on-rp-integration
Jul 31, 2025
Merged

Format datetime for rapidpro context#218
Mudiwa66 merged 1 commit into
developfrom
fix-date-on-rp-integration

Conversation

@erikh360

Copy link
Copy Markdown
Collaborator

No description provided.

@Mudiwa66
Mudiwa66 self-requested a review July 31, 2025 10:06
Comment thread sidekick/views.py

def format_field_value(value):
with contextlib.suppress(ValueError):
temp_date = datetime.fromisoformat(value)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Should we add a check to make sure we always pass value as a string here? Or does the contextlib.suppress part take care of that?

@Mudiwa66
Mudiwa66 merged commit 863cbc4 into develop Jul 31, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants