From 2a7bab20ef2a73dc0f50b4622963987549fa0724 Mon Sep 17 00:00:00 2001 From: kjod Date: Fri, 15 Dec 2017 20:46:05 +0000 Subject: [PATCH] Removed search vector text from function that gets data model headings. --- ZOOM/lib/common.py | 3 ++- ZOOM/manual_mapping/manual_mapper.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ZOOM/lib/common.py b/ZOOM/lib/common.py index 6f708d0c..3acdf173 100644 --- a/ZOOM/lib/common.py +++ b/ZOOM/lib/common.py @@ -144,7 +144,8 @@ def get_headings_data_model(df_file): #skip first four headings as irrelevant to user input, should use filter for this print((time.strftime("%H:%M:%S"))) - data_model_headings = data_model_headings[4:len(data_model_headings)] + data_model_headings = data_model_headings[4:len(data_model_headings)] + data_model_headings = filter(lambda x: "search_vector_text" != x, data_model_headings) remaining_mapping = data_model_headings zip_list = zip(file_heading_list, dtypes_list, validation_results) summary_results = file_heading_list##change this to add hover for file heading diff --git a/ZOOM/manual_mapping/manual_mapper.py b/ZOOM/manual_mapping/manual_mapper.py index 880b5381..057d2b17 100644 --- a/ZOOM/manual_mapping/manual_mapper.py +++ b/ZOOM/manual_mapping/manual_mapper.py @@ -414,7 +414,6 @@ def save_datapoints(df_data, index_order, reverse_mapping, dicts): ind_dict[i].count = IndicatorDatapoint.objects.filter(indicator=(ind_dict[i])).count() ind_dict[i].file_source = file_source ind_dict[i].save() - x.all() '''Remaps all files that have been mapped''' def remap_all_files():