Skip to content

Instantly share code, notes, and snippets.

@jaredlockhart
Created March 29, 2019 15:13
Show Gist options
  • Save jaredlockhart/155e7f1b13e3cf4f064e41c8c8beb491 to your computer and use it in GitHub Desktop.
Save jaredlockhart/155e7f1b13e3cf4f064e41c8c8beb491 to your computer and use it in GitHub Desktop.
from experimenter.experiments.models import Experiment
statuses = [s for s, _ in Experiment.STATUS_CHOICES]
status_pairs = list(zip([None] + statuses, statuses))
for experiment in Experiment.objects.all():
experiment_dates = []
for old_s, new_s in status_pairs:
experiment_dates.append(str(experiment._transition_date(old_s, new_s)))
print(','.join([str(experiment), experiment.experiment_url, *experiment_dates]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment