Skip to content

Commit

Permalink
add support to extra date format
Browse files Browse the repository at this point in the history
add support to extra date format
  • Loading branch information
8naama authored Mar 13, 2024
2 parents aab453b + fedde04 commit b0d3478
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ If you stopped the container, you can continue from the exact place you stopped,

## Changelog:

- **0.1.2**:
- Support another date format for `security_alerts`.
- **0.1.1**:
- Bug fix for `security_alerts` task fails on second cycle.
- **0.1.0**:
Expand Down
2 changes: 1 addition & 1 deletion src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _is_item_in_fetch_frame(self, item: dict, last_datetime_to_fetch: datetime)
def get_start_date_filter(self) -> str:
if self._current_data_last_date is not None:
start_date_str = self._get_new_start_date()
new_start_date = start_date_str.split('.')[0]
new_start_date = start_date_str.split('.')[0].split('+')[0] # cut out milliseconds and timezone
new_start_date += 'Z' if not new_start_date.endswith('Z') else ''
else:
start_date = datetime.utcnow() - timedelta(days=self.base_data.settings.days_back_to_fetch)
Expand Down

0 comments on commit b0d3478

Please sign in to comment.