We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4de766 commit d1fccbeCopy full SHA for d1fccbe
rssfilter/models.py
@@ -35,6 +35,11 @@ def clean(self):
35
if not result.valid:
36
raise ValidationError({"feed_url": result.error})
37
38
+ def save(self, *args, **kwargs):
39
+ self.cache_date = None
40
+ self.filtered_feed_body = ""
41
+ super().save(*args, **kwargs)
42
+
43
def get_filtered_feed_body(self) -> str:
44
five_mins_ago = timezone.now() - timedelta(seconds=RSS_FILTER_CACHE_SECONDS)
45
if self.cache_date and self.cache_date > five_mins_ago:
0 commit comments