from matcher.server.main.matcher import Matcher

DEFAULT_STRATEGIES = [
    [['ror_name', 'ror_acronym', 'ror_city', 'ror_country']],
    [['ror_name', 'ror_city', 'ror_country']]
]


def match_ror(conditions: dict) -> dict:
    strategies = conditions.get('strategies', DEFAULT_STRATEGIES)
    matcher = Matcher()
    return matcher.match(method='ror', conditions=conditions, strategies=strategies)

from matcher.server.main.matcher import Matcher

DEFAULT_STRATEGIES = [
    [['ror_name', 'ror_acronym', 'ror_city', 'ror_country']],
    [['ror_name', 'ror_city', 'ror_country']]
]


def match_ror(conditions: dict) -> dict:
    strategies = conditions.get('strategies', DEFAULT_STRATEGIES)
    matcher = Matcher()
    return matcher.match(method='ror', conditions=conditions, strategies=strategies)
