transport
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user