Skip to content

Commit

Permalink
fix pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
suntorytimed committed May 13, 2024
1 parent 5d088eb commit f3e1807
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def print_mermaid(status_dict,workflow_list):
print(' ' + line)
print('```')

def generate_svg(status_dict,workflow_list,output):
def generate_svg(status_dict,workflow_list):
'''
Output a PNG rendering of the workflow with mermaid-cli (requires mmdc in $PATH).
'''
Expand All @@ -100,11 +100,11 @@ def generate_svg(status_dict,workflow_list,output):
finally:
tmp.close()
os.remove(tmp.name)

if __name__ == "__main__":
status = get_status_text()
workflow = get_workflow()
if output is not None:
generate_svg(status,workflow,output)
generate_svg(status,workflow)
else:
print_mermaid(status,workflow)

0 comments on commit f3e1807

Please sign in to comment.