all the project copy
This commit is contained in:
16
telepot/insertCompetence.py
Normal file
16
telepot/insertCompetence.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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!"
|
||||
Reference in New Issue
Block a user