From 4985182b9afde21aa2b15d2dca99774c02af2f95 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 26 Jan 2024 11:38:38 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20recherche=20tag=20num=C3=A9riques?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_tag_module.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_tag_module.py b/app/scodoc/sco_tag_module.py index 051037618..7ab9d04a1 100644 --- a/app/scodoc/sco_tag_module.py +++ b/app/scodoc/sco_tag_module.py @@ -212,8 +212,10 @@ class ModuleTag(ScoTag): # API -def module_tag_search(term): +# TODO placer dans la vraie API et ne plus utiliser sco_publish +def module_tag_search(term: str | int): """List all used tag names (for auto-completion)""" + term = "" if term is None else str(term) # restrict charset to avoid injections if not scu.ALPHANUM_EXP.match(term): data = []