Skip to content

Commit 59d8340

Browse files
committed
🐛 (manager) Fix emitted store
1 parent 01fc7dc commit 59d8340

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

ingestors/manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import magic
99
from banal import ensure_list
10-
from followthemoney import model
10+
from followthemoney import StatementEntity, model
1111
from followthemoney.helpers import entity_filename
1212
from followthemoney.namespace import Namespace
1313
from ftmq.store.fragments import get_fragments
@@ -140,7 +140,7 @@ def emit_entity(self, entity, fragment=None):
140140
entity = self.ns.apply(entity)
141141
self.writer.put(entity.to_dict(), fragment)
142142
with self.emitted.writer() as bulk:
143-
bulk.add_entity(make_checksum_entity(entity, quiet=True))
143+
bulk.add_entity(make_checksum_entity(entity, StatementEntity, quiet=True))
144144

145145
def emit_text_fragment(self, entity, texts, fragment):
146146
texts = [t for t in ensure_list(texts) if filter_text(t)]

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ normality==3.0.2 ; python_version >= "3.11" and python_version < "3.14"
7070
numpy==2.3.4 ; python_version >= "3.11" and python_version < "3.14"
7171
odfpy==1.4.1 ; python_version >= "3.11" and python_version < "3.14"
7272
olefile==0.46 ; python_version >= "3.11" and python_version < "3.14"
73-
openaleph-procrastinate @ git+https://github.com/openaleph/openaleph-procrastinate.git@2d19b710f029e5409f03ca0e993c400d359fe1c9 ; python_version >= "3.11" and python_version < "3.14"
73+
openaleph-procrastinate @ git+https://github.com/openaleph/openaleph-procrastinate.git@1f109d3f2eb292d0e2e909fc5a2312448427f676 ; python_version >= "3.11" and python_version < "3.14"
7474
openaleph-servicelayer==1.23.3 ; python_version >= "3.11" and python_version < "3.14"
7575
openpyxl==3.1.5 ; python_version >= "3.11" and python_version < "3.14"
7676
orjson==3.11.3 ; python_version >= "3.11" and python_version < "3.14"

tests/support.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
import unittest
77
from tempfile import mkdtemp
88

9+
from followthemoney import StatementEntity
910
from ftmq.store.fragments import get_fragments
11+
from openaleph_procrastinate.util import make_checksum_entity
1012
from procrastinate.testing import InMemoryConnector
1113
from servicelayer import settings as sls
1214
from servicelayer.archive.util import ensure_path
@@ -21,6 +23,8 @@
2123
def emit_entity(self, entity, fragment=None):
2224
self.entities.append(entity)
2325
self.writer.put(entity.to_dict(), fragment=fragment)
26+
with self.emitted.writer() as bulk:
27+
bulk.add_entity(make_checksum_entity(entity, StatementEntity, quiet=True))
2428

2529

2630
class TestCase(unittest.TestCase):

0 commit comments

Comments
 (0)