Skip to content

Commit

Permalink
Send the sequence_accession, not a Run object
Browse files Browse the repository at this point in the history
  • Loading branch information
mberacochea committed Feb 16, 2024
1 parent afa3f18 commit c3ba441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emgapi/management/commands/populate_metagenomics_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ def process_to_index_and_update_records(self, analyses_to_index_and_update):

response = self.mgx_api.add_analysis(
mgya=annotation_job.accession,
sequence_accession=annotation_job.run,
sequence_accession=sequence_accession,
)
if response.ok:
logging.info(f"Successfully added {annotation_job}")
registry_id, metadata_match = self.mgx_api.check_analysis(
mgya=annotation_job.accession,
sequence_id=annotation_job.run,
sequence_id=sequence_accession,
)
annotation_job.mgx_accession = registry_id
annotation_job.last_mgx_indexed = timezone.now() + timedelta(
Expand Down

0 comments on commit c3ba441

Please sign in to comment.