Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #287 from sfinlon/master
Browse files Browse the repository at this point in the history
fix two old arrow references
  • Loading branch information
sfinlon authored Nov 1, 2019
2 parents 5f618c5 + 13f45e0 commit fa02a6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion csirtg_smrt/archiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def create(self, indicator):
def cleanup(self, days=CLEANUP_DAYS):
days = int(days)
date = arrow.utcnow()
date = date.replace(days=-days)
date = date.shift(days=-days)

s = self.begin()
count = s.query(Indicator).filter(Indicator.created_at < date.datetime).delete()
Expand Down
2 changes: 1 addition & 1 deletion csirtg_smrt/smrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def main():

goback = args.goback
if goback:
goback = arrow.utcnow().replace(days=-int(goback))
goback = arrow.utcnow().shift(days=-int(goback))

if not args.service:
data = None
Expand Down

0 comments on commit fa02a6a

Please sign in to comment.