Files
dougal-software/bin/import_survey_config.py
D. Berge c99a625b60 Add function to retrieve survey configurations from DB.
As the survey definitions will no longer be stored in files
under etc/surveys/ but directly on the database, this
function replaces configuration.surveys()
2023-08-30 14:27:15 +02:00

19 lines
389 B
Python
Executable File

#!/usr/bin/python3
"""
Import survey configuration.
Imports the content of the YAML survey configuration files
into the database (as JSON) so their data is available to
database functions and procedures.
"""
import json
from glob import glob
import configuration
from datastore import Datastore
if __name__ == '__main__':
print("This function is obsolete. Returning with no action")