diff --git a/coordinator/ProcessorSurveys.py b/coordinator/ProcessorSurveys.py index 5b874baf84315cf2017b77aea54c3600e78ceea2..1c05c999f6a1d309eef7827ab87719dab6a22736 100644 --- a/coordinator/ProcessorSurveys.py +++ b/coordinator/ProcessorSurveys.py @@ -1,5 +1,20 @@ #ProcessorSurveys.py -'''Functions to process the survey component.''' +'''Functions to process the survey component. + +Group surveys and run source gen on each groups: +Grouping is only run if it is defined in the config (otherwise it use all available surveys). +Example: + "Groups" : { + "PROD" : ["ODK-server", "kobo-server", "CSV-CAM"], + "WRT" : ["ODK", "CSV"] + } + +It is based on the 'Origin' column of the surveys. +All unique 'Origin' will create its own group alongside the ones defined in the config. +Groups can be ignored by defining 'GroupsToIgnore' in the config (this has no effect on 'Origin' types). +Example: + "GroupsToIgnore" : ["ODK-server", "kobo-server", "CSV-CAM", "ODK", "CSV", "PV"] +''' import csv import datetime