getRuleID() cannot get the last rule ID
Closed this issue · 0 comments
sdlj2008 commented
For this example: d.getRuleID()
It can not get the last rule ID because the following code does not contain the index of last rule:
if len(argv) == 0:
index = list(range(1, self.getRuleCount()))
The correct code should be as follows:
if len(argv) == 0:
index = list(range(1, self.getRuleCount() + 1))