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

Commit

Permalink
Version 10.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmonk committed Dec 27, 2016
1 parent 741ceb1 commit bc3bf63
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
5 changes: 2 additions & 3 deletions Code/DBgames.py
Expand Up @@ -453,16 +453,15 @@ def siFaltanRegistrosPorLeer(self):
return not self.rowidReader.terminado()

def filterPV(self, pv, condicionAdicional=None):
condicion = ""
if type(pv) == list: # transpositions
if pv:
li = []
for unpv in pv:
xpv = pv2xpv(unpv)
li.append('XPV GLOB "%s*"' % xpv)
condicion = "(%s)" % (" OR ".join(li),)
else:
condicion = ""
else:
elif pv:
xpv = pv2xpv(pv)
condicion = 'XPV GLOB "%s*"' % xpv if xpv else ""
if condicionAdicional:
Expand Down
2 changes: 1 addition & 1 deletion Code/Init.py
@@ -1,5 +1,5 @@
DEBUG = False
VERSION = "10.10"
VERSION = "10.10.1"

import os
import sys
Expand Down
6 changes: 3 additions & 3 deletions Code/QT/WBG_Games.py
Expand Up @@ -104,7 +104,7 @@ def updateStatus(self):
if not self.summaryActivo:
txt = ""
else:
partida = self.summaryActivo.get("partida")
partida = self.summaryActivo.get("partida", Partida.PartidaCompleta())
nj = partida.numJugadas()
if nj > 1:
p = partida.copia(nj-2)
Expand Down Expand Up @@ -178,12 +178,12 @@ def actualiza(self, siObligatorio=False):
self.summaryActivo = summaryActivo
pv = ""
if self.summaryActivo:
alm = self.summaryActivo["alm"]
alm = self.summaryActivo.get("alm")
if alm:
if len(alm.LIALMS) > 1:
pv = [ralm.PV for ralm in alm.LIALMS]
else:
pv = self.summaryActivo["pv"]
pv = self.summaryActivo.get("pv")
if pv:
lipv = pv.split(" ")
pv = " ".join(lipv[:-1])
Expand Down
6 changes: 3 additions & 3 deletions Code/QT/WBG_Summary.py
Expand Up @@ -451,15 +451,15 @@ def actualiza(self):

def actualizaPV(self, pvBase):
self.pvBase = pvBase
if pvBase is None:
pvMirar = None
if not pvBase:
pvMirar = ""
else:
pvMirar = self.pvBase

self.analisisMRM = None
dicAnalisis = {}
self.fenM2 = None
if pvMirar is not None:
if pvMirar:
p = Partida.Partida()
if pvMirar:
p.leerPV(pvMirar)
Expand Down

0 comments on commit bc3bf63

Please sign in to comment.