Skip to content

Commit

Permalink
Reset hard reload to false when serving the hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
T4rk1n committed Sep 12, 2018
1 parent fd15dd8 commit 370ac65
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dash/dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,14 @@ def _config(self):
return config

def serve_reload_hash(self):
hard = self._hard_reload
self._lock.acquire()
self._hard_reload = False
self._lock.release()

return flask.jsonify({
'reloadHash': self._reload_hash,
'hard': self._hard_reload
'hard': hard
})

def serve_routes(self):
Expand Down

0 comments on commit 370ac65

Please sign in to comment.