Skip to content

Commit

Permalink
fix #32
Browse files Browse the repository at this point in the history
  • Loading branch information
chriddyp committed Dec 11, 2017
1 parent 600f532 commit 3cd6a78
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions dash/dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,9 @@ def __init__(
See https://github.com/plotly/dash/issues/141 for details.
''', DeprecationWarning)

name = name or 'dash'
# allow users to supply their own flask server
if server is not None:
self.server = server
else:
if name is None:
name = 'dash'
self.server = Flask(name, static_folder=static_folder)
self.server = server or Flask(name, static_folder=static_folder)

self.url_base_pathname = url_base_pathname
self.config = _AttributeDict({
Expand Down

0 comments on commit 3cd6a78

Please sign in to comment.