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 create_signal function to accept datetime object for the created_at argument #16

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
0 of 4 checks passed
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