Fix bitbucker lister: request_uri expect 'identifier' to be a date

which it won't be when the lister is called for the first time (since
the run() method will be be called with min_bond=None in this case).
This commit is contained in:
David Douard 2019-01-14 11:53:51 +01:00
parent 4fc1968f1f
commit 028ceca90d

View file

@ -35,3 +35,6 @@ class BitBucketLister(SWHIndexingHttpLister):
def transport_response_simplified(self, response):
repos = response.json()['values']
return [self.get_model_from_repo(repo) for repo in repos]
def request_uri(self, identifier):
return super().request_uri(identifier or '1970-01-01')