Commit cc024d15b226f61d12742dd8497bfa629a275878
Exists in
master
and in
4 other branches
Merge pull request #102 from colab/improve_widget
Fix possible error when many simultaneous requests(Widgets)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
colab/widgets/widget_manager.py
@@ -54,7 +54,7 @@ class WidgetManager(object): | @@ -54,7 +54,7 @@ class WidgetManager(object): | ||
54 | if category not in WidgetManager.widget_categories: | 54 | if category not in WidgetManager.widget_categories: |
55 | return [] | 55 | return [] |
56 | 56 | ||
57 | - widgets = WidgetManager.widget_categories[category] | 57 | + widgets = WidgetManager.widget_categories[category][:] |
58 | for widget in widgets: | 58 | for widget in widgets: |
59 | widget.generate_content(request) | 59 | widget.generate_content(request) |
60 | return widgets | 60 | return widgets |