mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:47:08 +00:00
As the survey definitions will no longer be stored in files under etc/surveys/ but directly on the database, this function replaces configuration.surveys()
19 lines
389 B
Python
Executable File
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")
|