Update feed.py
All checks were successful
Build and Push Docker Image / build (push) Successful in 12s
All checks were successful
Build and Push Docker Image / build (push) Successful in 12s
This commit is contained in:
parent
02a4917152
commit
f9de8ff085
@ -302,7 +302,7 @@ class Subscription(DjangoDataModel):
|
|||||||
published_threshold: datetime
|
published_threshold: datetime
|
||||||
active: bool
|
active: bool
|
||||||
channels_count: int
|
channels_count: int
|
||||||
unique_content_rules: list | None
|
unique_content_rules: list
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def parser(item: dict) -> dict:
|
def parser(item: dict) -> dict:
|
||||||
@ -313,6 +313,7 @@ class Subscription(DjangoDataModel):
|
|||||||
"description": item.pop("article_desc_mutators")
|
"description": item.pop("article_desc_mutators")
|
||||||
}
|
}
|
||||||
item["published_threshold"] = datetime.strptime(item["published_threshold"], "%Y-%m-%dT%H:%M:%S%z")
|
item["published_threshold"] = datetime.strptime(item["published_threshold"], "%Y-%m-%dT%H:%M:%S%z")
|
||||||
|
item["unique_content_rules"] = item.get("unique_content_rules", [])
|
||||||
|
|
||||||
return item
|
return item
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user