File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def encode(name):
4747
4848 @app .callback (dash .dependencies .Output ('page-content' , 'children' ),
4949 [dash .dependencies .Input ('url' , 'pathname' )])
50- def display_image (pathname ):
50+ def display_image (pathname ): # pylint: disable=W0612
5151 """
5252 Assign the url path to return the image it represent. For example,
5353 to return "usage.png", you can visit localhost/usage.png.
@@ -56,9 +56,9 @@ def display_image(pathname):
5656 """
5757 if not pathname or pathname == '/' :
5858 return
59- else :
60- name = pathname .replace ('/' , '' )
61- return html .Img (id = name , src = encode (name ))
59+
60+ name = pathname .replace ('/' , '' )
61+ return html .Img (id = name , src = encode (name ))
6262
6363 # Start the app
6464 self .startServer (app )
You can’t perform that action at this time.
0 commit comments