diff options
Diffstat (limited to 'app/main/demo.py')
| -rw-r--r-- | app/main/demo.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/main/demo.py b/app/main/demo.py index 7e21768..2c0f1bc 100644 --- a/app/main/demo.py +++ b/app/main/demo.py @@ -336,10 +336,9 @@ def process_annotations(demo_id): ) return redirect(url_for("main.index")) - if annotation["changepoints"] is None: - retval = [] - else: - retval = [cp["x"] for cp in annotation["changepoints"]] + retval = [] + if not annotation["changepoints"] is None: + retval = [int(cp["x"]) for cp in annotation["changepoints"]] # If the user is already introduced, we assume that their demo annotations # are already in the database, and thus we don't put them back in (because |
