Disable checking against days to keep
This isn't the logic we should be using. Just stop using it until the function is comparing the proper dates.
This commit is contained in:
1 parent
1981301ed6
commit
d9c56db627
1 file changed
+3
-2
@@ -23,8 +23,8 @@ def filter_media(instance: Media):
|
|||||||
skip = True
|
skip = True
|
||||||
|
|
||||||
# Check if older than source_cutoff
|
# Check if older than source_cutoff
|
||||||
if filter_source_cutoff(instance):
|
#if filter_source_cutoff(instance):
|
||||||
skip = True
|
# skip = True
|
||||||
|
|
||||||
# Check if we have filter_text and filter text matches
|
# Check if we have filter_text and filter text matches
|
||||||
if filter_filter_text(instance):
|
if filter_filter_text(instance):
|
||||||
@@ -128,6 +128,7 @@ def filter_max_cap(instance: Media):
|
|||||||
|
|
||||||
|
|
||||||
# If the source has a cut-off, check the upload date is within the allowed delta
|
# If the source has a cut-off, check the upload date is within the allowed delta
|
||||||
|
# TODO: days to keep should be compared to downloaded date, not published
|
||||||
def filter_source_cutoff(instance: Media):
|
def filter_source_cutoff(instance: Media):
|
||||||
if instance.source.delete_old_media and instance.source.days_to_keep > 0:
|
if instance.source.delete_old_media and instance.source.days_to_keep > 0:
|
||||||
if not isinstance(instance.published, datetime):
|
if not isinstance(instance.published, datetime):
|
||||||
|
|||||||
Reference in new issue
Block a user