Commit 4101b858 authored by David Foucher's avatar David Foucher

OPtimize code presentation

parent db81668f
......@@ -4,10 +4,10 @@ from pathlib import Path
import pytest
from trefle.config import IDCC
from trefle.context import Context
from trefle import exceptions
from trefle import routine
from trefle.config import IDCC
from trefle.context import Context
@pytest.mark.asyncio
......
......@@ -2,12 +2,16 @@ from http import HTTPStatus
from roll import HttpError, Roll
from roll.extensions import cors
import ujson as json
from . import VERSION, simulate, get_financements
from .config import FINANCEMENTS, GLOSSARY, NAF, IDCC, RAW_RULES, SCHEMA
from .debugging import data_from_lbf_url, make_scenario, SCENARIOS
from . import VERSION, get_financements, get_remunerations, simulate
from . import routine
from .config import FINANCEMENTS, GLOSSARY, IDCC, NAF, RAW_RULES, SCHEMA
from .context import Context
from .debugging import SCENARIOS, data_from_lbf_url, make_scenario
from .exceptions import DataError
from .helpers import flatten
from .legacy import simulate_legacy
from .loggers import log_simulate, logger
from .openapis import OPENAPI
......
import datetime
import json
import hashlib
import hmac
import datetime
from urllib.parse import urlencode
from unidecode import unidecode
......@@ -309,7 +309,7 @@ def search_term(list_, term):
if k.startswith(term):
data[k] = list_[k]
elif isinstance(list_[k], dict):
for v in list_[k]:
if fold_name(term) in fold_name(list_[k][v]):
data[k] = list_[k]
for v in list_[k]:
if fold_name(term) in fold_name(list_[k][v]):
data[k] = list_[k]
return data
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment