diff --git a/gap_service_editor/routes/api.py b/gap_service_editor/routes/api.py index 15831a9f7f9ea304b07b640ecfdc96daabfd9d6b..41f6a54db62215c802605a7435d9670db72992fd 100644 --- a/gap_service_editor/routes/api.py +++ b/gap_service_editor/routes/api.py @@ -75,7 +75,7 @@ def things(): return { 'id': _hash(f'id-{idx}', 4), 'time': int(time.time() + random.randint(-six_months, six_months)), - 'state': bool(idx % 2), + 'state': random.choice([True, False]), 'data1': _hash(f'data1-{idx}', 2), 'data2': _hash(f'data2-{idx}', 8), 'data3': _hash(f'data3-{idx}', 32)