Skip to content

Commit

Permalink
Error fix in task_record_rss_subscribers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DEKHTIARJonathan committed Aug 21, 2017
1 parent 9bf9bf6 commit b3aea95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions feedcrunch/task_files/task_record_rss_subscribers.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def refresh_all_rss_subscribers_count():

@celery.task(name='feedcrunch.tasks.clean_unnecessary_rss_visits')
def clean_unnecessary_rss_visits():
today = datetime.now().date()
date_limit = today - timedelta(days=5)
today = datetime.now().date()
date_limit = today - timedelta(days=5)

RSSSubscriber.objects.filter(date__lte=date_limit).delete()
RSSSubscriber.objects.filter(date__lte=date_limit).delete()

0 comments on commit b3aea95

Please sign in to comment.