Created
March 29, 2019 15:13
-
-
Save jaredlockhart/155e7f1b13e3cf4f064e41c8c8beb491 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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