Skip to content

Instantly share code, notes, and snippets.

@savoiema
Created September 7, 2016 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save savoiema/36adfb2339df203fd70b6eb1d88807b2 to your computer and use it in GitHub Desktop.
Save savoiema/36adfb2339df203fd70b6eb1d88807b2 to your computer and use it in GitHub Desktop.
backfill where clause suggestion
backfill_filter = dict(backfill_id=backfill_id)
if completed_filter is not None:
backfill_filter["completed"] = completed_filter
if error_filter is not None:
backfill_filter["error"] = error_filter
backfill_articles = await BackfillArticle.get_all(
backfill_filter,
page=page,
page_size=page_size
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment