Yakova commited on
Commit
a5c1e96
1 Parent(s): 7a4dea0

Update App/Generate/database/Model.py

Browse files
Files changed (1) hide show
  1. App/Generate/database/Model.py +2 -2
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 = f"sqlite+aiosqlite:///{str(uuid.uuid4())}.db"
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