Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ ICONS = {
|
|
42 |
|
43 |
with ui.layout_columns(fill=False):
|
44 |
with ui.value_box(showcase=ICONS["user"]):
|
45 |
-
"
|
46 |
|
47 |
@render.express
|
48 |
def total_tippers():
|
@@ -150,8 +150,8 @@ ui.include_css(app_dir / "styles.css")
|
|
150 |
|
151 |
@reactive.calc
|
152 |
def tips_data():
|
153 |
-
|
154 |
-
idx1 = tips
|
155 |
idx2 = tips.time.isin(input.time())
|
156 |
return tips[idx1 & idx2]
|
157 |
|
@@ -159,5 +159,5 @@ def tips_data():
|
|
159 |
@reactive.effect
|
160 |
@reactive.event(input.reset)
|
161 |
def _():
|
162 |
-
ui.update_slider("
|
163 |
-
ui.update_checkbox_group("
|
|
|
42 |
|
43 |
with ui.layout_columns(fill=False):
|
44 |
with ui.value_box(showcase=ICONS["user"]):
|
45 |
+
"id"
|
46 |
|
47 |
@render.express
|
48 |
def total_tippers():
|
|
|
150 |
|
151 |
@reactive.calc
|
152 |
def tips_data():
|
153 |
+
سنی = input.سن()
|
154 |
+
idx1 = tips.سن.between(bill[0], bill[1])
|
155 |
idx2 = tips.time.isin(input.time())
|
156 |
return tips[idx1 & idx2]
|
157 |
|
|
|
159 |
@reactive.effect
|
160 |
@reactive.event(input.reset)
|
161 |
def _():
|
162 |
+
ui.update_slider("رنج سنی", value=bill_rng)
|
163 |
+
ui.update_checkbox_group("تاریخ", selected=["Twitter", "Instagram"])
|