Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Nov 22, 2024
1 parent d166909 commit 6e91d6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/iosanita/policy/restapi/services/search_tassonomie/get.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
from collective.taxonomy import PATH_SEPARATOR
from collective.taxonomy.interfaces import ITaxonomy
from iosanita.policy import _
from plone import api
from plone.restapi.batching import HypermediaBatch
Expand All @@ -8,8 +10,7 @@
from zope.component import getMultiAdapter
from zope.component import getUtility
from zope.schema.interfaces import IVocabularyFactory
from collective.taxonomy import PATH_SEPARATOR
from collective.taxonomy.interfaces import ITaxonomy


ALLOWED_TAXONOMIES = ["parliamo_di", "a_chi_si_rivolge_tassonomia"]

Expand Down Expand Up @@ -109,7 +110,6 @@ def get_facets(self, query):
return facets

def get_infos(self, index, value):

taxonomy = getUtility(ITaxonomy, name=f"collective.taxonomy.{index}")
taxonomy_voc = taxonomy.makeVocabulary(self.request.get("LANGUAGE"))

Expand Down

0 comments on commit 6e91d6a

Please sign in to comment.