Skip to content

Commit

Permalink
refactor: Lint agents-api (CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedantsahai18 authored and github-actions[bot] committed Dec 18, 2024
1 parent 638fefb commit 2ba91ad
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion agents-api/agents_api/queries/agents/patch_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
wrap_in_class,
)


# Define the raw SQL query
agent_query = parse_one("""
UPDATE agents
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/queries/entries/create_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from ...common.utils.datetime import utcnow
from ...common.utils.messages import content_to_json
from ...metrics.counters import increase_counter
from ..utils import pg_query, rewrap_exceptions, wrap_in_class, partialclass
from ..utils import partialclass, pg_query, rewrap_exceptions, wrap_in_class

# Query for checking if the session exists
session_exists_query = """
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/queries/entries/delete_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from ...autogen.openapi_model import ResourceDeletedResponse
from ...common.utils.datetime import utcnow
from ...metrics.counters import increase_counter
from ..utils import pg_query, rewrap_exceptions, wrap_in_class, partialclass
from ..utils import partialclass, pg_query, rewrap_exceptions, wrap_in_class

# Define the raw SQL query for deleting entries with a developer check
delete_entry_query = parse_one("""
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/queries/entries/get_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from sqlglot import parse_one

from ...autogen.openapi_model import History
from ..utils import pg_query, rewrap_exceptions, wrap_in_class, partialclass
from ..utils import partialclass, pg_query, rewrap_exceptions, wrap_in_class

# Define the raw SQL query for getting history with a developer check
history_query = parse_one("""
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/queries/entries/list_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from ...autogen.openapi_model import Entry
from ...metrics.counters import increase_counter
from ..utils import pg_query, rewrap_exceptions, wrap_in_class, partialclass
from ..utils import partialclass, pg_query, rewrap_exceptions, wrap_in_class

# Query for checking if the session exists
session_exists_query = """
Expand Down

0 comments on commit 2ba91ad

Please sign in to comment.