Commit 11078a5d authored by Georges Gressot's avatar Georges Gressot 💬
Browse files

+= replaced by = when possible

parent 948f9b18
......@@ -204,14 +204,14 @@ def home(request, bdd):
instrnbr =0
usernbr =len(Utilisateur.objects.using(bdd).all())
totcand =0
librnbr +=len(Library.objects.using(bdd).all()) -1 #checkers are not libraries ! (one checker per project)
itemrecnbr +=len(ItemRecord.objects.using(bdd).all())
instrnbr +=len(Instruction.objects.using(bdd).all())
librnbr =len(Library.objects.using(bdd).all()) -1 #checkers are not libraries ! (one checker per project)
itemrecnbr =len(ItemRecord.objects.using(bdd).all())
instrnbr =len(Instruction.objects.using(bdd).all())
cand =[]
for e in ItemRecord.objects.using(bdd).all():
if len(ItemRecord.objects.using(bdd).filter(sid =e.sid)) >1 and not e.sid in cand:
cand.append(e.sid)
totcand +=len(cand)
totcand =len(cand)
return render(request, 'epl/home.html', locals())
......
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