Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow site arg by domain name again for backfill_figures_daily_metrics #382

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

bryanlandia
Copy link
Contributor

@bryanlandia bryanlandia commented Jun 22, 2021

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
@@ -51,13 +51,16 @@ def handle(self, *args, **options):
date_start, date_end
))

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

@estherjsuh estherjsuh Jun 23, 2021

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