Spaces:
Runtime error
Runtime error
add dot filter (big!)
Browse files
app.py
CHANGED
@@ -202,6 +202,9 @@ if genre == ':rainbow[Heroes Explorer]':
|
|
202 |
defense_option = st.text_input(label="Defense:", value="0")
|
203 |
attack_option = st.text_input(label="Attack:", value="0")
|
204 |
health_option = st.text_input(label="Health:", value="0")
|
|
|
|
|
|
|
205 |
with col3:
|
206 |
st.header("Sorted By")
|
207 |
st.write("Tips: you can also directly click at the column name to sort")
|
@@ -241,7 +244,15 @@ if genre == ':rainbow[Heroes Explorer]':
|
|
241 |
|
242 |
if health_option != "0":
|
243 |
health_option = int(health_option)
|
244 |
-
idx_all.append(filter_by_1col_num(df, 'health', health_option, oper_flag="ge"))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
|
246 |
if special_type_option != '':
|
247 |
idx_all.append(filter_by_1col(df, 'types', special_type_option, exact_flag=False))
|
|
|
202 |
defense_option = st.text_input(label="Defense:", value="0")
|
203 |
attack_option = st.text_input(label="Attack:", value="0")
|
204 |
health_option = st.text_input(label="Health:", value="0")
|
205 |
+
|
206 |
+
total_dot_option = st.text_input(label="Total DoT Damage:", value="0")
|
207 |
+
dot_per_turn_option = st.text_input(label="DoT Damage Per Turn:", value="0")
|
208 |
with col3:
|
209 |
st.header("Sorted By")
|
210 |
st.write("Tips: you can also directly click at the column name to sort")
|
|
|
244 |
|
245 |
if health_option != "0":
|
246 |
health_option = int(health_option)
|
247 |
+
idx_all.append(filter_by_1col_num(df, 'health', health_option, oper_flag="ge"))
|
248 |
+
|
249 |
+
if total_dot_option != "0":
|
250 |
+
total_dot_option = int(total_dot_option)
|
251 |
+
idx_all.append(filter_by_1col_num(df, 'total_dot_damage', total_dot_option, oper_flag="ge"))
|
252 |
+
|
253 |
+
if dot_per_turn_option != "0":
|
254 |
+
dot_per_turn_option = int(dot_per_turn_option)
|
255 |
+
idx_all.append(filter_by_1col_num(df, 'dot_damage_per_turn', dot_per_turn_option, oper_flag="ge"))
|
256 |
|
257 |
if special_type_option != '':
|
258 |
idx_all.append(filter_by_1col(df, 'types', special_type_option, exact_flag=False))
|