From 52ed1fa26783ecd4e76b2d1119f8d19153b5d56e Mon Sep 17 00:00:00 2001 From: Vanessa Sochat Date: Fri, 17 Aug 2018 07:11:57 -0400 Subject: [PATCH 1/3] doing fix for survey to test generator --- survey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/survey.py b/survey.py index 242880f..391cb01 100644 --- a/survey.py +++ b/survey.py @@ -236,7 +236,7 @@ def create_numeric_textfield(text,id_attribute,box_text=None,classes="",required textfield_html,box_text = base_textfield(text,id_attribute,box_text) meta = parse_meta(text) - return '%s\n
\n\n\nInput is not a number!\n



' %(textfield_html,class_names,classes,required,id_attribute,id_attribute,meta,id_attribute,box_text) + return '%s\n
\n\n\nPlease enter a real number\n



' %(textfield_html,class_names,classes,required,id_attribute,id_attribute,meta,id_attribute,box_text) def create_select_table(text,id_attribute,df,classes="",required=0): From c0e554f4b09ec1aeb6c579358702aaac88bd21c1 Mon Sep 17 00:00:00 2001 From: Vanessa Sochat Date: Fri, 17 Aug 2018 07:40:43 -0400 Subject: [PATCH 2/3] need to add source of environment first --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 269613c..672d023 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM ubuntu:16.04 +# docker build -t vanessa/survey-generator + RUN apt-get update && apt-get install -y git python3-pip python3-dev WORKDIR /opt RUN git clone https://www.github.com/expfactory/expfactory From a0bf10bdec9225f442d196dc60d7934295add2e3 Mon Sep 17 00:00:00 2001 From: Vanessa Sochat Date: Fri, 17 Aug 2018 08:05:45 -0400 Subject: [PATCH 3/3] updating error message --- survey.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/survey.py b/survey.py index 391cb01..e2541e0 100644 --- a/survey.py +++ b/survey.py @@ -236,8 +236,7 @@ def create_numeric_textfield(text,id_attribute,box_text=None,classes="",required textfield_html,box_text = base_textfield(text,id_attribute,box_text) meta = parse_meta(text) - return '%s\n
\n\n\nPlease enter a real number\n



' %(textfield_html,class_names,classes,required,id_attribute,id_attribute,meta,id_attribute,box_text) - + return '%s\n
\n\n\nPlease enter an integer or real number\n



' %(textfield_html,class_names,classes,required,id_attribute,id_attribute,meta,id_attribute,box_text) def create_select_table(text,id_attribute,df,classes="",required=0): '''create_select_table generates a material lite table from a pandas data frame.