* tasks
Browse files
App/Generate/database/Model.py
CHANGED
@@ -11,11 +11,7 @@ from pydantic import BaseModel
|
|
11 |
import tempfile
|
12 |
import json
|
13 |
|
14 |
-
|
15 |
-
SUPABASE = os.environ.get(
|
16 |
-
"SUPABASE",
|
17 |
-
"postgresql+asyncpg://postgres.djnpqggqnsnunrnqyqal:[email protected]:5432/postgres",
|
18 |
-
)
|
19 |
database_url = SUPABASE
|
20 |
database = databases.Database(database_url)
|
21 |
models = orm.ModelRegistry(database=database)
|
|
|
11 |
import tempfile
|
12 |
import json
|
13 |
|
14 |
+
SUPABASE = os.environ.get("SUPABASE", "RANDOM_STRING")
|
|
|
|
|
|
|
|
|
15 |
database_url = SUPABASE
|
16 |
database = databases.Database(database_url)
|
17 |
models = orm.ModelRegistry(database=database)
|