diff --git a/swh/loader/pypi/loader.py b/swh/loader/pypi/loader.py --- a/swh/loader/pypi/loader.py +++ b/swh/loader/pypi/loader.py @@ -34,6 +34,8 @@ 'debug': ('bool', False), # NOT FOR PRODUCTION } + visit_type = 'pypi' + def __init__(self, client=None): super().__init__(logging_class='swh.loader.pypi.PyPILoader') if not client: @@ -92,7 +94,7 @@ """ self.origin = { 'url': project_url, - 'type': 'pypi', + 'type': self.visit_type, } self.visit_date = None # loader core will populate it