Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ with ui.sidebar(open="desktop"):
|
|
| 24 |
|
| 25 |
)
|
| 26 |
ui.input_checkbox_group(
|
| 27 |
-
"
|
| 28 |
" service",
|
| 29 |
["Twitter", "Instagram"],
|
| 30 |
selected=["Twitter", "Instagram"],
|
|
@@ -158,7 +158,7 @@ ui.include_css(app_dir / "styles.css")
|
|
| 158 |
def tips_data():
|
| 159 |
سنی = input.سن()
|
| 160 |
idx1 = tips.سن.between(سنی[0], سنی[1]) # Corrected range filter
|
| 161 |
-
idx2 = tips
|
| 162 |
return tips[idx1 & idx2] # Apply filters to the tips data
|
| 163 |
|
| 164 |
@reactive.effect
|
|
|
|
| 24 |
|
| 25 |
)
|
| 26 |
ui.input_checkbox_group(
|
| 27 |
+
"تاریخ",
|
| 28 |
" service",
|
| 29 |
["Twitter", "Instagram"],
|
| 30 |
selected=["Twitter", "Instagram"],
|
|
|
|
| 158 |
def tips_data():
|
| 159 |
سنی = input.سن()
|
| 160 |
idx1 = tips.سن.between(سنی[0], سنی[1]) # Corrected range filter
|
| 161 |
+
idx2 = tips.تاریخ.isin(input.time()) # Filter based on selected time (Twitter, Instagram)
|
| 162 |
return tips[idx1 & idx2] # Apply filters to the tips data
|
| 163 |
|
| 164 |
@reactive.effect
|