Tox fixes, because it's a thing we do now

This commit is contained in:
blitzman
2017-02-16 23:12:25 -05:00
parent 66d78fed2c
commit 4ba11d832a
4 changed files with 4 additions and 5 deletions

View File

@@ -5,5 +5,6 @@ Migration 21
(we don't support activating only 2/5 drones). See GH issue #728
"""
def upgrade(saveddata_engine):
saveddata_engine.execute("UPDATE drones SET amountActive = amount where amountActive > 0 AND amountActive <> amount;")

View File

@@ -147,7 +147,7 @@ class Character(object):
if self.alphaCloneID:
clone = eos.db.getAlphaClone(self.alphaCloneID)
type = clone.alphaCloneName.split()[1]
type = clone.alphaCloneName.split()[1]
name += u' (\u03B1{})'.format(type[0].upper())
return name

View File

@@ -181,7 +181,7 @@ class ContextMenu(object):
# noinspection PyUnresolvedReferences
from gui.builtinContextMenus import ( # noqa: E402,F401
openFit,
#moduleGlobalAmmoPicker,
# moduleGlobalAmmoPicker,
moduleAmmoPicker,
itemStats,
damagePattern,
@@ -204,5 +204,3 @@ from gui.builtinContextMenus import ( # noqa: E402,F401
implantSets,
fighterAbilities,
)

View File

@@ -731,7 +731,7 @@ class Fit(object):
# If we have less than the total number of drones active, make them all active. Fixes #728
# This could be removed if we ever add an enhancement to make drone stacks partially active.
if d2.amount > d2.amountActive:
if d2.amount > d2.amountActive:
d2.amountActive = d2.amount
eos.db.commit()