mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
fix so 0-percent works
This commit is contained in:
parent
3f6f16c2f4
commit
fb0807c14b
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ class Device():
|
||||||
|
|
||||||
def setApp(self, pct):
|
def setApp(self, pct):
|
||||||
if self.app == self.args.APP_OLD and not self.app == self.args.APP_NEW:
|
if self.app == self.args.APP_OLD and not self.app == self.args.APP_NEW:
|
||||||
if os.path.exists(self.script) and pct >= random.randint(0, 99):
|
if os.path.exists(self.script) and pct > random.randint(0, 99):
|
||||||
print('launch(): upgrading {} from {} to {}' \
|
print('launch(): upgrading {} from {} to {}' \
|
||||||
.format(self.devName(), self.app, self.args.APP_NEW))
|
.format(self.devName(), self.app, self.args.APP_NEW))
|
||||||
self.app = self.args.APP_NEW
|
self.app = self.args.APP_NEW
|
||||||
|
|
Loading…
Add table
Reference in a new issue