Skip to content

Commit

Permalink
[cleanup]
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez committed Feb 4, 2025
1 parent d2e4478 commit a6e6e35
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
File renamed without changes.
2 changes: 0 additions & 2 deletions check_api_key.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import os

import supabase
Expand Down Expand Up @@ -49,4 +48,3 @@ def get_user_id_from_api_key(api_key: str) -> str:
if not response.data:
raise ValueError("Invalid API key")
return response.data[0]["user_id"]

20 changes: 10 additions & 10 deletions cloud_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ CREATE POLICY api_keys_insert_policy ON swarms_cloud_api_keys
-- Table: swarms_cloud_agents
-----------------------------------------------------------
CREATE TABLE swarms_cloud_agents (
id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
name text NOT NULL,
description text,
code text NOT NULL,
requirements text,
envs text,
autoscaling boolean DEFAULT false,
created_at timestamptz DEFAULT now(),
updated_at timestamptz DEFAULT now(),
owner uuid NOT NULL -- The owner of the agent (should be auth.uid())
id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
name text NOT NULL,
description text,
code text NOT NULL,
requirements text,
envs text,
autoscaling boolean DEFAULT false,
created_at timestamptz DEFAULT now(),
updated_at timestamptz DEFAULT now(),
owner uuid NOT NULL -- The owner of the agent (should be auth.uid())
);

-- Enable Row Level Security on agents.
Expand Down
1 change: 0 additions & 1 deletion test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def test_get_agent_history(agent_id):
assert "executions" in response.json()



def run_all_tests():
try:
# Test basic endpoints
Expand Down

0 comments on commit a6e6e35

Please sign in to comment.