import sys
from pathlib import Path

ROOT_DIR = Path(__file__).resolve().parents[1]
CONN_DIR = ROOT_DIR / "conn"
if str(CONN_DIR) not in sys.path:
    sys.path.insert(0, str(CONN_DIR))

import filters


def manageCompetence(tid,cid, sort):
    if filters.insertFilter(tid, sort, cid):
        return "Filtro inserito con successo"
    else:
        return "Filtro gia' esistente!"
