Skip to content

Commit

Permalink
Lint Edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunami Dasgupta authored and Sunami Dasgupta committed Oct 28, 2024
1 parent 096b20e commit f1fcc5d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions autogole-api/src/python/RTMonLibs/DiagramWorker.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ def d_addSwitch(self, item):
:return: Diagram object representing the switch.
"""
if item['Node'] in self.added:
self.objects[item['Port']] = {"obj": self.objects[self.added[item['Node']]]["obj"], "data": item}
self.objects[item['Port']] = {
"obj": self.objects[self.added[item['Node']]]["obj"],
"data": item
}
return
switch1 = Custom(item['Node'].split(":")[1], self.SWITCH_ICON_PATH)
if 'Peer' in item and item['Peer'] != "?peer?":
Expand Down Expand Up @@ -163,11 +166,11 @@ def setreverse(self, item):
:param item: Dictionary containing item details.
"""
if item['Type'] == 'Host' and self.popreverse == None:
if item['Type'] == 'Host' and self.popreverse is None:
self.popreverse = False
elif item['Type'] == 'Host' and self.popreverse == False:
elif item['Type'] == 'Host' and self.popreverse is False:
self.popreverse = True
elif item['Type'] == 'Host' and self.popreverse == True:
elif item['Type'] == 'Host' and self.popreverse is True:
self.popreverse = False

def createGraph(self, output_filename):
Expand Down

0 comments on commit f1fcc5d

Please sign in to comment.