From c0705aec7fa0835de1be4444d0d5bbe4f4089fb1 Mon Sep 17 00:00:00 2001 From: Taylor Date: Fri, 10 Jul 2020 10:25:54 -0700 Subject: [PATCH] Remove test code --- application.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/application.py b/application.py index d7164c8..e038a6e 100644 --- a/application.py +++ b/application.py @@ -162,11 +162,6 @@ def _get_json_for_random_dates(count, use_concept_tags, thumbs): random_date_ordinals = list(range(begin_ordinal, today_ordinal + 1)) shuffle(random_date_ordinals) - # FOR TESTING ONLY! - bad_ordinal = datetime(2020, 6, 10).toordinal() - random_date_ordinals = [bad_ordinal] + random_date_ordinals - assert random_date_ordinals[0] == 737586 - all_data = [] for date_ordinal in random_date_ordinals: dt = date.fromordinal(date_ordinal) @@ -178,7 +173,7 @@ def _get_json_for_random_dates(count, use_concept_tags, thumbs): data['service_version'] = SERVICE_VERSION all_data.append(data) - if len(all_data) == count: + if len(all_data) >= count: break return jsonify(all_data)