@@ -32,7 +32,7 @@ def retheme(graph_data, app_style={}):
3232 if isinstance (app_style , str ):
3333 if os .path .exists (app_style ):
3434 try :
35- with open (app_style , 'rt' ) as f :
35+ with open (app_style , "rt" ) as f :
3636 app_style = json .load (f )
3737 except Exception as e :
3838 print (f"Invalid app style file { app_style } " )
@@ -44,7 +44,7 @@ def retheme(graph_data, app_style={}):
4444 for g in gc :
4545 if "name" in g :
4646 for m in g ["models" ]:
47- app_name = g [' app_name' ]
47+ app_name = g [" app_name" ]
4848 if app_name in app_style :
4949 m ["style" ] = app_style [app_name ]
5050 return graph_data
@@ -73,7 +73,7 @@ def __init__(self, *args, **kwargs):
7373 "action" : "store" ,
7474 "help" : "Path to style json to configure the style per app" ,
7575 "dest" : "app-style" ,
76- "default" : ".app-style.json"
76+ "default" : ".app-style.json" ,
7777 },
7878 "--pygraphviz" : {
7979 "action" : "store_true" ,
@@ -372,7 +372,7 @@ def handle(self, *args, **options):
372372 )
373373 template = loader .get_template (template_name )
374374
375- graph_data = retheme (graph_data , app_style = options [' app-style' ])
375+ graph_data = retheme (graph_data , app_style = options [" app-style" ])
376376 dotdata = generate_dot (graph_data , template = template )
377377
378378 if output == "pygraphviz" :
0 commit comments