transport

This commit is contained in:
2025-09-20 13:55:46 +02:00
parent 4b8a242dda
commit 5c0d91a0ba
5 changed files with 109 additions and 197 deletions

View File

@@ -4,6 +4,7 @@ import time
import sys
METABASE_URL = os.getenv("METABASE_URL", "http://127.0.0.1:3000")
payload = {
# Admin Metabase
ADMIN_FIRST_NAME = os.getenv("MB_FIRST_NAME", "Admin")
@@ -149,6 +150,7 @@ def get_or_create_question(session_id, name, db_id, sql, collection_id):
"type": "native",
"native": {"query": sql}
},
"visualization_settings": {},
"display": "table",
"collection_id": collection_id
}
@@ -203,7 +205,7 @@ if __name__ == "__main__":
session,
"Nombre de lignes",
db_id,
"SELECT COUNT(*) AS total FROM information_schema.tables;",
"SELECT COUNT(*) AS total FROM adherent;",
coll_id
)