Skip to content

Commit

Permalink
Update oda_api/api.py
Browse files Browse the repository at this point in the history
Co-authored-by: Denys Savchenko <56398430+dsavchenko@users.noreply.github.com>
  • Loading branch information
okolo and dsavchenko authored Dec 6, 2023
1 parent 0c74c92 commit 6c25ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oda_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ def report_progress(self, stage: str=None, progress: int=50, substage: str=None,
"""
callback_payload = dict(stage=stage, progress=progress, substage=substage, subprogress=subprogress, message=message)
callback_payload = {k: v for k, v in callback_payload.items() if v is not None}

callback_payload['action'] = 'progress'
if not self.enabled:
logger.info('no callback registered, skipping')
return

Check warning on line 1374 in oda_api/api.py

View check run for this annotation

Codecov / codecov/patch

oda_api/api.py#L1369-L1374

Added lines #L1369 - L1374 were not covered by tests
Expand Down

0 comments on commit 6c25ca1

Please sign in to comment.