gazette.utils.sogc_importer

Classes

SogcImporter

Module Contents

class gazette.utils.sogc_importer.SogcImporter(session: sqlalchemy.orm.Session, config: dict[str, str])[source]
converters: dict[str, type[onegov.gazette.utils.sogc_converter.KK01 | onegov.gazette.utils.sogc_converter.KK02 | onegov.gazette.utils.sogc_converter.KK03 | onegov.gazette.utils.sogc_converter.KK04 | onegov.gazette.utils.sogc_converter.KK05 | onegov.gazette.utils.sogc_converter.KK06 | onegov.gazette.utils.sogc_converter.KK07 | onegov.gazette.utils.sogc_converter.KK08 | onegov.gazette.utils.sogc_converter.KK09 | onegov.gazette.utils.sogc_converter.KK10]][source]
session[source]
endpoint[source]
canton[source]
category[source]
organization[source]
subrubrics = ['KK01', 'KK02', 'KK03', 'KK04', 'KK05', 'KK06', 'KK07', 'KK08', 'KK09', 'KK10'][source]
get_publication_ids() list[str][source]

Returns the IDs of the publications we are interested in. Does not include the IDs of the publications which has been already imported previously.

get_publication(identifier: str) None[source]

Fetches a single publication and adds it as an official notice.

__call__() int[source]