Commit b9889d32e030bea945488bb3cb7efa916581d4ab

Authored by Gust
1 parent 0b8f3f6a

Fix error when multiple requests simultaneous

Copy the list to avoid serving the user the wrong widget content

Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
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