Skip to content

Commit

Permalink
Discard changes to src/vis-preview.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAkhmetov authored Oct 17, 2024
1 parent 75291fc commit 00c4a21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vis-preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ def main(): # pragma: no cover
json_str = args.json.read_text()
entity = json.loads(json_str)

def get_assaytype(entity):
def get_assaytype(uuid):
headers = {}
if args.token:
headers['Authorization'] = f'Bearer {args.token}'
return requests.get(f'{defaults["assaytypes_url"]}/{entity["uuid"]}', headers=headers).json()
requests.get(f'{defaults["assaytypes_url"]}/{uuid}', headers=headers).json()

Builder = get_view_config_builder(entity, get_assaytype)
builder = Builder(entity, args.token, args.assets_url)
Expand Down

0 comments on commit 00c4a21

Please sign in to comment.