Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/github/__init__.py
# Copyright (C) 2019 the Software Heritage developers | |||||
# License: GNU General Public License version 3, or any later version | |||||
# See top-level LICENSE file for more information | |||||
from functools import partial | |||||
from swh.lister.core.models import initialize | |||||
def register(): | |||||
from .models import GitHubModel as Model | |||||
from .lister import GitHubLister as Lister | |||||
return {'model': Model, | |||||
'lister': Lister, | |||||
'tasks': '%s.tasks' % __name__, | |||||
'init': partial(initialize, Model)} |