Skip to content

Commit

Permalink
update for api
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Aug 16, 2024
1 parent 0fd5d00 commit 37d8dbe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions compose_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ async def fetch_results(job_id: str):
# check for a downloadable file in results
job_data = job['results'].get('results')

# case: output is a file
# case: output is a file (smoldyn simulation run or simularium file conversion, among others)
if "results_file" in job_data.keys():
remote_fp = job_data['results_file']
temp_dest = mkdtemp()
Expand Down Expand Up @@ -435,7 +435,8 @@ async def generate_simularium_file(

# new simularium job in db
if filename is None:
filename = 'simulation.simularium'
filename = 'simulation'

new_job_submission = await db_connector.write(
collection_name=DatabaseCollections.PENDING_JOBS,
status=JobStatus.PENDING,
Expand Down

0 comments on commit 37d8dbe

Please sign in to comment.