Commit 3c432c13 authored by Georges Gressot's avatar Georges Gressot 💬
Browse files

Merge branch 'multi'

parents 21b3647e 384d7fee
epl_version ="v2.04 (Bertrada)"
date_version ="November 2, 2021"
# Mise au niveau de :
# epl_version ="v2.05.0 (~Himiltrude)"
# epl_version ="v2.05.1 (~Himiltrude)"
# date_version ="November 2, 2021"
from django.shortcuts import render
......@@ -62,8 +62,11 @@ def selectbdd(request):
for i in [n for n in range(100)]:
if os.path.isfile('{:02d}.db'.format(i)):
p = Project.objects.using('{:02d}'.format(i)).all().order_by('pk')[0].name
BDD_CHOICES += ('{:02d}'.format(i), '{:02d}'.format(i) + " - " + p),
try:
p = Project.objects.using('{:02d}'.format(i)).all().order_by('pk')[0].name
BDD_CHOICES += ('{:02d}'.format(i), '{:02d}'.format(i) + " - " + p),
except:
pass
if len(BDD_CHOICES) ==2:
return HttpResponseRedirect(BDD_CHOICES[1][0])
......
Supports Markdown
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