Skip to content

Commit

Permalink
🐛 (transform) ensure default dataset for mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwoerpel committed Oct 6, 2023
1 parent 190406e commit 50d0300
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion investigraph/logic/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
from investigraph.types import CEGenerator, SDict


def map_record(record: SDict, mapping: QueryMapping, dataset: str) -> CEGenerator:
def map_record(
record: SDict, mapping: QueryMapping, dataset: str | None = "default"
) -> CEGenerator:
mapping = mapping.get_mapping()
if mapping.source.check_filters(record):
entities = mapping.map(record)
Expand Down

0 comments on commit 50d0300

Please sign in to comment.