Skip to content

Fixes #4134 from OCCRP upstream repo #697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions ingestors/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import logging
from timeit import default_timer
from tempfile import mkdtemp
from datetime import datetime
from pkg_resources import get_distribution

from followthemoney import model
from banal import ensure_list
Expand Down Expand Up @@ -201,12 +199,7 @@ def ingest(self, file_path, entity, **kwargs):
if file_size is not None and not entity.has("fileSize"):
entity.add("fileSize", file_size)

now = datetime.now()
now_string = now.strftime("%Y-%m-%dT%H:%M:%S.%f")

entity.set("processingStatus", self.STATUS_FAILURE)
entity.set("processingAgent", get_distribution("ingest").version)
entity.set("processedAt", now_string)

ingestor_class = None
ingestor_name = None
Expand Down