Skip to content

Commit

Permalink
Fix bug for saying day of week / this day of week (did not affect 'ne…
Browse files Browse the repository at this point in the history
…xt week' / 'previous week') [fixes #1]
  • Loading branch information
nottheswimmer committed Aug 14, 2019
1 parent 6798a3e commit e8c6085
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arbitrary_dateparser/dateparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ def refresh_dates(self):
self.date_phrases[day] = self.today
self.date_phrases[f'this {day}'] = self.today
else:
self.date_phrases[day] = self.today.next()
self.date_phrases[f'this {day}'] = self.today.next()
self.date_phrases[day] = self.today.next(i)
self.date_phrases[f'this {day}'] = self.today.next(i)

for i, month in enumerate(MONTH_NAMES_ABBREVIATED):
self.date_phrases[f'next {month}'] = self.next_month.add(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name='arbitrary-dateparser',
version='0.0.3',
version='0.0.4',
packages=['arbitrary_dateparser'],
zip_safe=False,
python_requires='>=3, <4',
Expand Down

0 comments on commit e8c6085

Please sign in to comment.