Skip to content

Commit

Permalink
missing instances
Browse files Browse the repository at this point in the history
  • Loading branch information
Rehouma63 committed Aug 17, 2023
1 parent 7454306 commit 5e620da
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sarracenia/sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2176,9 +2176,12 @@ def dump(self):
print(',')
print('}')
print(',\n\n\"Missing instances\" : { \n\n')
for instance in self.missing:
lengthMissing = len(self.missing)
for indexMissing,instance in enumerate(self.missing):
(c, cfg, i) = instance
print('\t\t\"%s\" : \"%s %d\",' % (c, cfg, i))
print('\t\t\"%s\" : \"%s %d\"' % (c, cfg, i))
if lengthMissing - 1 > indexMissing:
print(',')
print('\t\t}\n}')

def status(self):
Expand Down

0 comments on commit 5e620da

Please sign in to comment.