Unverified Commit f466edda authored by Simon Bray's avatar Simon Bray Committed by GitHub
Browse files

force galaxy_id to string in galactic_job_json

parent f963b67a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@ def galactic_job_json(

    def replacement_file(value):
        if value.get('galaxy_id'):
            return {"src": "hda", "id": value['galaxy_id']}
            return {"src": "hda", "id": str(value['galaxy_id'])}
        file_path = value.get("location", None) or value.get("path", None)
        # format to match output definitions in tool, where did filetype come from?
        filetype = value.get("filetype", None) or value.get("format", None)
@@ -281,7 +281,7 @@ def galactic_job_json(

    def replacement_collection(value):
        if value.get('galaxy_id'):
            return {"src": "hdca", "id": value['galaxy_id']}
            return {"src": "hdca", "id": str(value['galaxy_id'])}
        assert "collection_type" in value
        collection_type = value["collection_type"]
        elements = to_elements(value, collection_type)