Skip to content

Commit

Permalink
chore: Update get_trial_by_model_and_input to handle JSON input URL
Browse files Browse the repository at this point in the history
  • Loading branch information
amirnd51 committed Jul 24, 2024
1 parent 95fc212 commit 2c97869
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python_api/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ def create_expriement( cur, conn):


def get_trial_by_model_and_input(model_id, input_url):

input_url=json.loads(input_url)
input_url=input_url["url"]
input_query = """
SELECT trial_id
FROM trial_inputs
WHERE url = %s
WHERE %s in url
"""

# Main query to get trial details
Expand Down

0 comments on commit 2c97869

Please sign in to comment.