Skip to content

Commit

Permalink
Fix options
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-piles committed Apr 25, 2024
1 parent 4e4b198 commit cc51b3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions worker_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ def process(self, id, message, rc, ts):
task = MetadataExtractionTask(**message)

if task.params.options:
options = task.params.options if task.params.multi_value else task.params.options[-1]
options_path.write_text(json.dumps(options))
options_path.write_text(json.dumps(task.params.options[-1]))

data_url = f"http://127.0.0.1:5056/get_suggestions/{task.tenant}/{task.params.id}"

Expand Down

0 comments on commit cc51b3c

Please sign in to comment.