Skip to content
This repository was archived by the owner on May 4, 2021. It is now read-only.

Commit 9ecc1ce

Browse files
committed
Version 11.04a
1 parent 2afabbc commit 9ecc1ce

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Code/Init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from Code.Constantes import *
1010

1111
DEBUG = False
12-
VERSION = "11.04"
12+
VERSION = "11.04a"
1313

1414
if DEBUG:
1515
prlkn("DEBUG " * 20)

Code/QT/WBase.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,8 @@ def gridDato(self, grid, fila, oColumna):
369369
NAG_0, NAG_1, NAG_2, NAG_3, NAG_4, NAG_5, NAG_6 = range(7)
370370

371371
color_nag = NAG_0
372-
liNAGs = jg.critica.strip().split(" ") if jg.critica else []
373-
for critica in liNAGs:
372+
stNAGS = set(jg.critica.strip().split(" ") if jg.critica else [])
373+
for critica in stNAGS:
374374
if critica in ("1", "2", "3", "4", "5", "6"):
375375
color_nag = critica
376376
break
@@ -397,20 +397,21 @@ def gridDato(self, grid, fila, oColumna):
397397
info = "(%+0.2f)" % float(pts / 100.0)
398398

399399
nag, color_nag = mrm.setNAG_Color(self.configuracion, rm)
400-
liNAGs.append(nag)
400+
stNAGS.add(str(nag))
401401

402402
criticaDirecta = jg.criticaDirecta
403403
if criticaDirecta:
404404
nag = {"??": NAG_4, "?": NAG_2, "!!": NAG_3, "!": NAG_1, "!?": NAG_5, "?!": NAG_6}.get(criticaDirecta,
405405
NAG_0)
406-
liNAGs.append(nag)
406+
stNAGS.add(str(nag))
407407
color_nag = nag
408408

409409

410+
410411
if jg.siApertura or jg.critica or jg.comentario or jg.variantes:
411412
siA = jg.siApertura
412413
nR = 0
413-
if jg.critica and nag == NAG_0:
414+
if jg.critica:
414415
nR += 1
415416
if jg.comentario:
416417
nR += 1
@@ -431,7 +432,7 @@ def gridDato(self, grid, fila, oColumna):
431432
NAG_5: c.color_nag5,
432433
NAG_6: c.color_nag6}[color_nag]
433434

434-
return pgn, color, info, indicadorInicial, liNAGs
435+
return pgn, color, info, indicadorInicial, stNAGS
435436

436437

437438
def gridPonValor(self, grid, fila, oColumna, valor):

bug.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Version 11.04
1+
Version 11.04a

0 commit comments

Comments
 (0)