Skip to content

Commit 2b99b2d

Browse files
committed
fixed misunderstanding of count()
1 parent 15385a9 commit 2b99b2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ def updateEnabledContainers():
7676

7777
containerDiff = getDiff(containers, newContainers)
7878

79-
logger.info(f"Found {newContainers.count()} Containers")
79+
logger.info(f"Found {newContainers.__len__()} Containers")
8080

81-
logger.debug(f"Found {containerDiff.get("added").count()} added Containers")
82-
logger.debug(f"Found {containerDiff.get("removed").count()} removed Containers")
81+
logger.debug(f"Found {containerDiff.get("added").__len__()} added Containers")
82+
logger.debug(f"Found {containerDiff.get("removed").__len__()} removed Containers")
8383

8484
# Threading
8585
# with containerToHostLock and containerLock:
@@ -174,7 +174,7 @@ def main():
174174
globalDiff = cleanDiff(globalDiff)
175175

176176
# Check if there is actually any Diff
177-
if globalDiff.get("removed").count() + globalDiff.get("added").count() <= 0:
177+
if globalDiff.get("removed").__len__() + globalDiff.get("added").__len__() <= 0:
178178
logger.debug("No Changes were made, skipping...")
179179

180180
return

0 commit comments

Comments
 (0)