[pillowfort] provide 'count' metadata field (#6478)

This commit is contained in:
Mike Fährmann
2024-11-15 08:27:52 +01:00
parent 9821503226
commit a3dbc58172
2 changed files with 5 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ class PillowfortExtractor(Extractor):
post["date"] = text.parse_datetime(
post["created_at"], "%Y-%m-%dT%H:%M:%S.%f%z")
post["post_id"] = post.pop("id")
post["count"] = len(files)
yield Message.Directory, post
post["num"] = 0