Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -198,10 +198,12 @@ def get_DF(DF,ticker,SmartScore,GFValuepercent, FinVizTargetpercent, Sector,Mark
|
|
| 198 |
if MarketBeat == 0:
|
| 199 |
tabulator = pn.widgets.Tabulator( DF.query("SmartScore>=@SmartScore[0] & SmartScore <= @SmartScore[1] & GFValuepercent>=@GFValuepercent & FinVizTargetpercent>@FinVizTargetpercent & Sector in @Sector & MarketCap>@MarketCap & AllTargetsAbovePrice==1"), height=800, widths=200, show_index=False ,theme='modern')
|
| 200 |
else:
|
| 201 |
-
tabulator =
|
| 202 |
tabulator.disabled = True
|
|
|
|
|
|
|
| 203 |
return tabulator
|
| 204 |
-
|
| 205 |
def get_DF_filter(DF,ticker,SmartScore,GFValuepercent, FinVizTargetpercent, Sector,MarketCap):
|
| 206 |
return DF.query("SmartScore>=@SmartScore[0] & SmartScore <= @SmartScore[1] & GFValuepercent>=@GFValuepercent & FinVizTargetpercent>@FinVizTargetpercent & Sector in @Sector & MarketCap>@MarketCap")
|
| 207 |
|
|
|
|
| 198 |
if MarketBeat == 0:
|
| 199 |
tabulator = pn.widgets.Tabulator( DF.query("SmartScore>=@SmartScore[0] & SmartScore <= @SmartScore[1] & GFValuepercent>=@GFValuepercent & FinVizTargetpercent>@FinVizTargetpercent & Sector in @Sector & MarketCap>@MarketCap & AllTargetsAbovePrice==1"), height=800, widths=200, show_index=False ,theme='modern')
|
| 200 |
else:
|
| 201 |
+
tabulator = pn.widgets.Tabulator( DF.query("SmartScore>=@SmartScore[0] & SmartScore <= @SmartScore[1] & GFValuepercent>=@GFValuepercent & FinVizTargetpercent>@FinVizTargetpercent & Sector in @Sector & MarketCap>@MarketCap"), height=800, widths=200, show_index=False ,theme='modern')
|
| 202 |
tabulator.disabled = True
|
| 203 |
+
print(tabulator.disabled)
|
| 204 |
+
print(80*'***')
|
| 205 |
return tabulator
|
| 206 |
+
|
| 207 |
def get_DF_filter(DF,ticker,SmartScore,GFValuepercent, FinVizTargetpercent, Sector,MarketCap):
|
| 208 |
return DF.query("SmartScore>=@SmartScore[0] & SmartScore <= @SmartScore[1] & GFValuepercent>=@GFValuepercent & FinVizTargetpercent>@FinVizTargetpercent & Sector in @Sector & MarketCap>@MarketCap")
|
| 209 |
|