Update app.py
Browse files
app.py
CHANGED
|
@@ -151,8 +151,8 @@ def plot_indicators(company_names, indicator_types):
|
|
| 151 |
"""Plot the selected indicators for the selected companies."""
|
| 152 |
images = []
|
| 153 |
total_market_cap = 0
|
| 154 |
-
if len(company_names) >
|
| 155 |
-
return None, "You can select up to
|
| 156 |
if len(company_names) > 1 and len(indicator_types) > 1:
|
| 157 |
return None, "You can only select one indicator when selecting multiple companies.", None
|
| 158 |
|
|
|
|
| 151 |
"""Plot the selected indicators for the selected companies."""
|
| 152 |
images = []
|
| 153 |
total_market_cap = 0
|
| 154 |
+
if len(company_names) > 7:
|
| 155 |
+
return None, "You can select up to 7 companies at the same time.", None
|
| 156 |
if len(company_names) > 1 and len(indicator_types) > 1:
|
| 157 |
return None, "You can only select one indicator when selecting multiple companies.", None
|
| 158 |
|