Skip to content

Allow site arg by domain name again for backfill_figures_daily_metrics - #382

Merged
bryanlandia merged 1 commit into
masterfrom
bryan/fix-daily-backfill-sites
Jun 23, 2021
Merged

bryanlandia merged 1 commit into
masterfrom
bryan/fix-daily-backfill-sites

Conversation

@bryanlandia

@bryanlandia bryanlandia commented Jun 22, 2021 •

Copy link
Copy Markdown
Contributor

My last PR wasn't quite right, since it did away with the option to pass a domain name instead of Site id—way more convenient. This brings back that ability for backfill_figures_daily_metrics

By not calling self.get_site_ids I had allowed only an integer value
@bryanlandia
bryanlandia force-pushed the bryan/fix-daily-backfill-sites branch from 79c4cf2 to bcc7770 Compare June 22, 2021 21:16
@bryanlandia
bryanlandia marked this pull request as ready for review June 22, 2021 21:37
))

# don't pass multiple site ids to tasks
site_id = None if not options['site'] else self.get_site_ids(options['site'])

@estherjsuh estherjsuh Jun 23, 2021 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bryanlandia can we use options['site'] instead of self.get_site_ids(options['site']) here?

@bryanlandia
bryanlandia merged commit 5e92b44 into master Jun 23, 2021
@OmarIthawi
OmarIthawi deleted the bryan/fix-daily-backfill-sites branch March 19, 2022 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants