Skip to content

Instantly share code, notes, and snippets.

@mythmon
Created October 24, 2012 00:54
Show Gist options
  • Save mythmon/3943053 to your computer and use it in GitHub Desktop.
Save mythmon/3943053 to your computer and use it in GitHub Desktop.
>>> for h in range(24):
... s = models.Simple(prodchan='firefox.desktop.stable', happy=True, description='Test of datetime splitting (%d)' % h, created=datetime(2012, 10, 21, h, 0))
... s.save()
... models.SimpleIndex.index(models.SimpleIndex.extract_document(s.id), s.id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment