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.
|
Increment all increment keys.
|
||||||
"""
|
"""
|
||||||
for k, v in self.incr.items():
|
for k, _ in self.incr.items():
|
||||||
v = int(v)
|
val = int(self.metadatums[k])
|
||||||
self.metadatums[k] = self.incr[k] % (v + 1)
|
self.metadatums[k] = self.incr[k] % (val + 1)
|
||||||
|
|
||||||
|
|
||||||
class BatchfileParser:
|
class BatchfileParser:
|
||||||
|
|||||||
Reference in New Issue
Block a user