Skip to content

Commit

Permalink
🔨 (notebook) #134 code review
Browse files Browse the repository at this point in the history
use .env variables and docker metadata
  • Loading branch information
philippe thomy committed Jul 25, 2024
1 parent a9bd161 commit 03f51cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions env.d/notebook
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DATABASE_URL=postgresql+psycopg://qualicharge:pass@postgresql:5432/qualicharge-api
ADMIN_KEY="mb_44Wb2RiqYP226DCOuP6itQRqxQvxVBM+T2wW3ZlSEX8="
5 changes: 2 additions & 3 deletions src/notebook/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,8 @@ See examples below.
import requests
import pandas as pd

# admin metabase
API_KEY = 'mb_dQBXZ4oMgf0bRsHY0zqlg6SSZuzoCqhitxX35KQI3hc='
API_ADMIN_KEY = 'mb_eC8U3KEYG2SOD37Mw69NT9vbwnh78b5G/IcePXqKvoU='
# Get metabase key from the environment
admin_key = os.getenv("ADMIN_KEY")

# Metabase server
METABASE_HOST = "metabase"
Expand Down

0 comments on commit 03f51cf

Please sign in to comment.