Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/cran/lister.py
Show All 21 Lines | class CRANLister(SimpleLister): | ||||
def task_dict(self, origin_type, origin_url, **kwargs): | def task_dict(self, origin_type, origin_url, **kwargs): | ||||
"""Return task format dict | """Return task format dict | ||||
This is overridden from the lister_base as more information is | This is overridden from the lister_base as more information is | ||||
needed for the ingestion task creation. | needed for the ingestion task creation. | ||||
""" | """ | ||||
return create_task_dict( | return create_task_dict( | ||||
'load-%s' % origin_type, 'recurring', | 'load-%s' % origin_type, | ||||
kwargs.get('policy', 'recurring'), | |||||
kwargs.get('name'), origin_url, kwargs.get('version'), | kwargs.get('name'), origin_url, kwargs.get('version'), | ||||
project_metadata=self.descriptions[kwargs.get('name')]) | project_metadata=self.descriptions[kwargs.get('name')]) | ||||
def r_script_request(self): | def r_script_request(self): | ||||
"""Runs R script which uses inbuilt API to return a json | """Runs R script which uses inbuilt API to return a json | ||||
response containing data about all the R packages | response containing data about all the R packages | ||||
Returns: | Returns: | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |