From 488d4860a4c35744eca0ba7a4b13ff4eec886eed Mon Sep 17 00:00:00 2001 From: stes Date: Fri, 5 Jun 2020 16:47:28 +0200 Subject: [PATCH] rm options --- view.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/view.py b/view.py index 6652ab3..e1639b0 100644 --- a/view.py +++ b/view.py @@ -14,7 +14,6 @@ def __init__(self, name, db, config, server): self.app = dash.Dash(name, external_stylesheets=external_stylesheets, server=server) self.db = db self.current_idx = 0 - self.username = str(uuid.uuid4()) self.appconfig = config self.pick_keypoint_subset() self.make_figure_image(self.current_idx) @@ -84,7 +83,7 @@ def make_layout(self): dcc.Input( id="input_name", type='text', - placeholder=self.username, + placeholder=str(uuid.uuid4()), ), html.Button('Previous', id='previous'), html.Button('Next', id='next'), @@ -122,7 +121,8 @@ def make_layout(self): ) def pick_keypoint_subset(self): - self.subset = random.sample(range(len(self.appconfig.options)), self.appconfig.n2show) + self.subset = list(range(len(self.appconfig.options))) + #random.sample(range(len(self.appconfig.options)), self.appconfig.n2show) def refresh_radio_buttons(self): self.pick_keypoint_subset()