LuminosoInsight / sales-engineering-code

Code for sales engineering, particularly for code that will be given to customers
MIT License
0 stars 0 forks source link

text data as metadata to format_multiple_text_fields.py #181

Open wharter opened 11 months ago

wharter commented 11 months ago

The script called format_survey.py is an enhancement of the older format_multiple_textfields.py and the ability to have the text data be turned into metadata as well as text data is one of it's key features. That feature of having a text field be copied into both a string metadata field as well as a text field needs to be added to format_multiple_text_fields.py. I think this would be easiest as a command line feature flag. Maybe a '-s' and if -s is included on the command line, the take every text field and also make it a string field with the same name that was used for the text field.

text_Question_14 I really liked the survey

Added as metadata if the -s flag is provided: {'name': 'Question_14', 'type':'string', 'value':'I really liked the survey'}