You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
arm.power is a string, whereas maxPower is an integer, so comparing them fails and will never tag for infusion. arm.tag is never None and so will never tag items for infusion.
To correct the issue:
skip header row during CSV read -- if you don't do this, int() in next step will croak by trying to int("Power")
use int() on arm.power so arm.power == maxPower functions correctly later on
change if statement during infusion tagging to match changes above
add headers to output csv code, since step 1 removes header from data.
if (row[4] != 'Exotic') and (row[0] !='Name'):
... arm.power = int(row[8])
... if arm.tag is '' and arm.power == maxPower:
... data.writerow([ "Hash", "Id", "Tag", "Notes" ])
The text was updated successfully, but these errors were encountered:
stephenwilletts
added a commit
to stephenwilletts/Destiny2ItemManager
that referenced
this issue
Jul 11, 2019
Running the script does not tag items to
infuse
.arm.power
is a string, whereasmaxPower
is an integer, so comparing them fails and will never tag for infusion.arm.tag
is neverNone
and so will never tag items for infusion.To correct the issue:
int()
in next step will croak by trying toint("Power")
int()
onarm.power
soarm.power == maxPower
functions correctly later onif
statement during infusion tagging to match changes abovedata
.The text was updated successfully, but these errors were encountered: