Spaces:
Sleeping
Sleeping
Update dependencies/database.py
Browse files- dependencies/database.py +2 -2
dependencies/database.py
CHANGED
@@ -73,12 +73,12 @@ class SupabaseDb:
|
|
73 |
print(response)
|
74 |
return response
|
75 |
|
76 |
-
def insert_tokens(self,access_token:str,refresh_token:str,hushh_id:str):
|
77 |
|
78 |
supabase = self.supabase_client()
|
79 |
response = (
|
80 |
supabase.table("receipt_radar_history")
|
81 |
-
.insert({"access_token": access_token,"refresh_token":refresh_token ,"hushh_id": hushh_id})
|
82 |
.execute()
|
83 |
)
|
84 |
print("Inserting the access and refresh tokens")
|
|
|
73 |
print(response)
|
74 |
return response
|
75 |
|
76 |
+
def insert_tokens(self,access_token:str,refresh_token:str,hushh_id:str,email:str):
|
77 |
|
78 |
supabase = self.supabase_client()
|
79 |
response = (
|
80 |
supabase.table("receipt_radar_history")
|
81 |
+
.insert({"access_token": access_token,"refresh_token":refresh_token ,"hushh_id": hushh_id , "email":email})
|
82 |
.execute()
|
83 |
)
|
84 |
print("Inserting the access and refresh tokens")
|