Skip to content

Commit ac20064

Browse files
authored
no int
1 parent ecee3be commit ac20064

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

haystack/management/commands/update_index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ def handle(self, **options):
259259
parser.error("Minutes / age / start date options are mutually exclusive")
260260

261261
if minutes is not None:
262-
self.start_date = now() - timedelta(minutes=int(minutes))
262+
self.start_date = now() - timedelta(minutes=minutes)
263263

264264
if age is not None:
265-
self.start_date = now() - timedelta(hours=int(age))
265+
self.start_date = now() - timedelta(hours=age)
266266

267267
if start_date is not None:
268268
from dateutil.parser import parse as dateutil_parse

0 commit comments

Comments
 (0)