Skip to content

Commit b28a856

Browse files
committed
needed to import subclasses, so they can be registered
1 parent 9b32619 commit b28a856

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

middleware/metadata_scraper/metadata_extractor/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,6 @@ def get_metadata_or_log_error(self, content: str, url: str) -> Optional[List[Dic
112112
otel_span.add_event(msg)
113113
logging.exception("%s, suspicious data:\n%s", msg, suspicious_data)
114114
return None
115+
116+
from .embedded_jsonld import MetadataExtractorEmbeddedJsonld # noqa: E402, F401
117+
from .jsonld import MetadataExtractorJsonld # noqa: E402, F401

middleware/metadata_scraper/sitemap_parser/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,9 @@ def parse_content_as_json(self) -> Any:
116116
except json.JSONDecodeError as e:
117117
raise SitemapParseError(e) from e
118118
return json_objs
119+
120+
121+
from .openagrar import SitemapParserOpenAgrar # noqa: E402, F401
122+
from .publisso import SitemapParserPublisso # noqa: E402, F401
123+
from .thunen_atlas import SitemapParserThunenAtlas # noqa: E402, F401
124+
from .xml import SitemapParserXml # noqa: E402, F401

0 commit comments

Comments
 (0)