mirror of
https://github.com/iluvcapra/mfbatch.git
synced 2025-12-31 08:50:51 +00:00
Fixed a bug in the increment code
Not sure how that happened I thought this used to work!
This commit is contained in:
@@ -131,9 +131,9 @@ class CommandEnv:
|
||||
"""
|
||||
Increment all increment keys.
|
||||
"""
|
||||
for k, v in self.incr.items():
|
||||
v = int(v)
|
||||
self.metadatums[k] = self.incr[k] % (v + 1)
|
||||
for k, _ in self.incr.items():
|
||||
val = int(self.metadatums[k])
|
||||
self.metadatums[k] = self.incr[k] % (val + 1)
|
||||
|
||||
|
||||
class BatchfileParser:
|
||||
|
||||
Reference in New Issue
Block a user