Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -721,6 +721,19 @@ def get_bot_skills():
|
|
| 721 |
return data
|
| 722 |
except Exception as e:
|
| 723 |
return [[f"Erreur: {str(e)}", "-", "-", "-", "-", "-"]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 724 |
|
| 725 |
# --- 🎨 INTERFACE GRADIO ---
|
| 726 |
with gr.Blocks(theme=gr.themes.Monochrome()) as iface:
|
|
|
|
| 721 |
return data
|
| 722 |
except Exception as e:
|
| 723 |
return [[f"Erreur: {str(e)}", "-", "-", "-", "-", "-"]]
|
| 724 |
+
|
| 725 |
+
def force_scalping_mode():
|
| 726 |
+
import sqlite3
|
| 727 |
+
try:
|
| 728 |
+
with sqlite3.connect(DB_NAME) as conn:
|
| 729 |
+
# On force tous les timeframes à x1.8 pour encaisser les profits rapidement
|
| 730 |
+
conn.execute("UPDATE agent_logic SET tp_mult = 1.8")
|
| 731 |
+
conn.commit()
|
| 732 |
+
# On renvoie les nouvelles stats pour mettre à jour le tableau
|
| 733 |
+
return get_bot_skills()
|
| 734 |
+
except Exception as e:
|
| 735 |
+
print(f"❌ Erreur Reset Scalping : {e}")
|
| 736 |
+
return [[f"Erreur: {str(e)}", "-", "-", "-", "-", "-"]]
|
| 737 |
|
| 738 |
# --- 🎨 INTERFACE GRADIO ---
|
| 739 |
with gr.Blocks(theme=gr.themes.Monochrome()) as iface:
|