Skip to content

Commit

Permalink
removed unnecessary for loop on source data update (#5707)
Browse files Browse the repository at this point in the history
* removed unnecessary for loop on source data update

* tabs -> spaces

* remove bad indent
  • Loading branch information
chanansh authored and bryevdv committed Jan 18, 2017
1 parent 665c397 commit bc86ecc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/app/weather/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ def update_plot(attrname, old, new):
plot.title.text = "Weather data for " + cities[city]['title']

src = get_dataset(df, cities[city]['airport'], distribution_select.value)
for key in STATISTICS + ['left', 'right']:
source.data.update(src.data)
source.data.update(src.data)

city = 'Austin'
distribution = 'Discrete'
Expand Down

0 comments on commit bc86ecc

Please sign in to comment.