Skip to content
Snippets Groups Projects
Commit b7fc947e authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

Remove unused entrypoints and update some docs

parent 6e081e71
No related branches found
No related tags found
No related merge requests found
"""
survey_publisher_legacy
=========================
This script is used to import data from the legacy datasources into the new survey system.
Legacy data is used to generate a new survey for each NREN, for each year that we have data for.
The generated surveys are based on the 2024 survey.
"""
import click import click
from itertools import chain from itertools import chain
from collections import defaultdict from collections import defaultdict
......
""" """
survey_publisher_old_db_2022 survey_publisher_legacy_db
============================ ============================
This module loads the survey data from 2022 from the old survey database and returns the data. This module loads the survey data from 2022 from the old survey database and returns the data
ready to be used to generate new-style surveys.
""" """
from decimal import Decimal from decimal import Decimal
......
""" """
survey_publisher_v1 survey_publisher_legacy_excel
========================= =========================
This module loads the survey data from before 2022 from a legacy Excel files. This module loads the survey data from before 2022 from a legacy Excel file.
Missing info is filled in from the survey db for some questions. Missing info is filled in from the survey db for some questions.
Registered as click cli command when installing compendium-v2. Returns the data ready to be used to generate new-style surveys.
""" """
from __future__ import annotations from __future__ import annotations
......
...@@ -6,10 +6,13 @@ Commands ...@@ -6,10 +6,13 @@ Commands
.. contents:: :local: .. contents:: :local:
.. automodule:: compendium_v2.publishers.survey_publisher_legacy_excel .. automodule:: compendium_v2.publishers.legacy_publisher.survey_publisher_legacy
:members: :members:
.. automodule:: compendium_v2.publishers.survey_publisher_old_db_2022 .. automodule:: compendium_v2.publishers.legacy_publisher.survey_publisher_legacy_db
:members:
.. automodule:: compendium_v2.publishers.legacy_publisher.survey_publisher_legacy_excel
:members: :members:
.. automodule:: compendium_v2.conversion.conversion .. automodule:: compendium_v2.conversion.conversion
......
...@@ -30,8 +30,6 @@ setup( ...@@ -30,8 +30,6 @@ setup(
include_package_data=True, include_package_data=True,
entry_points={ entry_points={
'console_scripts': [ 'console_scripts': [
'excel-survey-publisher=compendium_v2.publishers.survey_publisher_legacy_excel:cli',
'db-publisher-2022=compendium_v2.publishers.survey_publisher_old_db_2022:cli',
'conversion=compendium_v2.conversion.conversion:cli', 'conversion=compendium_v2.conversion.conversion:cli',
'dump_survey_model=compendium_v2.migrations.dump_survey_model:cli', 'dump_survey_model=compendium_v2.migrations.dump_survey_model:cli',
'legacy-survey-publisher=compendium_v2.publishers.legacy_publisher.survey_publisher_legacy:cli', 'legacy-survey-publisher=compendium_v2.publishers.legacy_publisher.survey_publisher_legacy:cli',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment