fixed errored source for still needed commodities.
This commit is contained in:
parent
b204a67eea
commit
af336c9785
|
|
@ -273,12 +273,15 @@ class IdaCogs(commands.Cog):
|
|||
|
||||
for i in range(len(commodity)):
|
||||
finalDict[commodity[i]] = values[i]
|
||||
|
||||
if initial[i] > 0:
|
||||
progressDict[commodity[i]] = await helpers.createProgressBar(values[i],initial[i])
|
||||
neededCommodity.append(commodity[i])
|
||||
else:
|
||||
progressDict[commodity[i]] = await helpers.createProgressBar(1,1)
|
||||
|
||||
if values[i] > 0:
|
||||
neededCommodity.append(commodity[i])
|
||||
|
||||
#finalDict = dict(sorted(finalDict.items(), key=lambda item: item[1], reverse=True))
|
||||
|
||||
self.commodities = neededCommodity
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user