Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 190e41cd authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

correctif bug dicoView()

parent 97a7eb01
......@@ -46,6 +46,10 @@ def getLenDic(dic):
lenDic+=1
return lenDic
# pour requêtage depuis views.py (dicoView())
def getLenDicFr():
return getLenDic(word2transFr)
## FR
word2transFr = {} # un mot → liste de trans possibles
with open(dicFile, 'r') as f:
......
......@@ -135,7 +135,7 @@ def main0(request):
def dicoView(request):
data = Entree()
data.update = updateTime()
data.lenDic = txtphono.getLenDic()
data.lenDic = txtphono.getLenDicFr()
data.logStat = txtphono.getLogStat()
return render(request, 'editDico.html', {'data': 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