Jon Solow
commited on
Commit
·
f66425a
1
Parent(s):
da1f09d
Revert "Extend client timeout"
Browse filesThis reverts commit da1f09df271f23b9570522762dc99401f35df2fb.
src/queries/supabase_db/client.py
CHANGED
|
@@ -1,12 +1,8 @@
|
|
| 1 |
import os
|
| 2 |
|
| 3 |
-
from supabase import create_client, Client
|
| 4 |
|
| 5 |
url: str = str(os.environ.get("SUPABASE_URL"))
|
| 6 |
key: str = str(os.environ.get("SUPABASE_KEY"))
|
| 7 |
|
| 8 |
-
|
| 9 |
-
CLIENT_TIMEOUT = 7 * 24 * 60 * 60 # one week in seconds
|
| 10 |
-
supabase_client: Client = create_client(
|
| 11 |
-
url, key, ClientOptions(postgrest_client_timeout=CLIENT_TIMEOUT, storage_client_timeout=CLIENT_TIMEOUT)
|
| 12 |
-
)
|
|
|
|
| 1 |
import os
|
| 2 |
|
| 3 |
+
from supabase import create_client, Client
|
| 4 |
|
| 5 |
url: str = str(os.environ.get("SUPABASE_URL"))
|
| 6 |
key: str = str(os.environ.get("SUPABASE_KEY"))
|
| 7 |
|
| 8 |
+
supabase_client: Client = create_client(url, key)
|
|
|
|
|
|
|
|
|
|
|
|