Skip to content

Conversation

@TheophileDiot
Copy link
Contributor

Description

This pull request updates the create_signal function to accept a datetime object for the created_at argument. Previously, the function only accepted a string. With this change, users can provide datetime objects directly, enhancing flexibility and convenience.

Changes Made

Modified Files

  • src/cscapi/utils.py: Updated the create_signal function to accept datetime objects for the created_at argument, expanding its usability and flexibility.

Copy link
Collaborator

@rr404 rr404 left a comment

Choose a reason for hiding this comment

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

LGTM
What do you think @julienloizelet

@julienloizelet
Copy link
Collaborator

It works great.
Some issue with the linter (black) test but I will fix it after merge.

Thanks @TheophileDiot

@julienloizelet julienloizelet merged commit cc1a501 into crowdsecurity:main Feb 9, 2024
julienloizelet pushed a commit to julienloizelet/crowdsec-python-capi-sdk that referenced this pull request Mar 14, 2024
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.

3 participants