Skip to content

Commit c0705ae

Browse files
author
Taylor
committed
Remove test code
1 parent 0bb3f67 commit c0705ae

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

application.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,6 @@ def _get_json_for_random_dates(count, use_concept_tags, thumbs):
162162
random_date_ordinals = list(range(begin_ordinal, today_ordinal + 1))
163163
shuffle(random_date_ordinals)
164164

165-
# FOR TESTING ONLY!
166-
bad_ordinal = datetime(2020, 6, 10).toordinal()
167-
random_date_ordinals = [bad_ordinal] + random_date_ordinals
168-
assert random_date_ordinals[0] == 737586
169-
170165
all_data = []
171166
for date_ordinal in random_date_ordinals:
172167
dt = date.fromordinal(date_ordinal)
@@ -178,7 +173,7 @@ def _get_json_for_random_dates(count, use_concept_tags, thumbs):
178173

179174
data['service_version'] = SERVICE_VERSION
180175
all_data.append(data)
181-
if len(all_data) == count:
176+
if len(all_data) >= count:
182177
break
183178

184179
return jsonify(all_data)

0 commit comments

Comments
 (0)