-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Track Network & Address + Generate Pydantic DB Types #38
Conversation
@@ -22,14 +22,17 @@ async def runs(worker_id: str, params: Params) -> Response: | |||
if prompt == "": | |||
raise HTTPException(status_code=400, detail="Prompt cannot be empty.") | |||
|
|||
supabase = client.create_admin() | |||
worker_exists = tables.workers.exists(supabase, worker_id) | |||
db = client.create_admin() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could move the client into the method (like we have for some other operations) since the client is lightweight and doesn't need to be re-used (I remember you looking into that)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was thinking the same, okay will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do in another PR
closes #27