From 19ae36f427b8251e4e13223084075dcc5170625b Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Thu, 19 Jan 2023 12:43:28 +0100
Subject: [PATCH] randomize state for fun

---
 gap_service_editor/routes/api.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gap_service_editor/routes/api.py b/gap_service_editor/routes/api.py
index 15831a9..41f6a54 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)
-- 
GitLab