Update App/Generate/database/Model.py
Browse files
App/Generate/database/Model.py
CHANGED
@@ -9,8 +9,8 @@ import aiohttp
|
|
9 |
from typing import List
|
10 |
from pydantic import BaseModel
|
11 |
import json
|
12 |
-
|
13 |
-
database_url =
|
14 |
database = databases.Database(database_url)
|
15 |
models = orm.ModelRegistry(database=database)
|
16 |
|
|
|
9 |
from typing import List
|
10 |
from pydantic import BaseModel
|
11 |
import json
|
12 |
+
SUPABASE= os.environ.get("SUPABASE", "RANDOM_STRING")
|
13 |
+
database_url = SUPABASE
|
14 |
database = databases.Database(database_url)
|
15 |
models = orm.ModelRegistry(database=database)
|
16 |
|