lister: Fix type
This fixes the master build [1] [1] https://jenkins.softwareheritage.org/view/swh-draft/job/DLS/job/tests/1625/console
This commit is contained in:
parent
97553d8984
commit
3ffea8f525
1 changed files with 3 additions and 1 deletions
|
@ -248,11 +248,13 @@ class SourceForgeLister(Lister[SourceForgeListerState, SourceForgeListerPage]):
|
|||
) -> Iterator[ListedOrigin]:
|
||||
assert self.lister_obj.id is not None
|
||||
for hit in page:
|
||||
last_modified: str = str(hit.last_modified)
|
||||
last_update: datetime.datetime = iso8601.parse_date(last_modified)
|
||||
yield ListedOrigin(
|
||||
lister_id=self.lister_obj.id,
|
||||
visit_type=hit.vcs.value,
|
||||
url=hit.url,
|
||||
last_update=iso8601.parse_date(hit.last_modified),
|
||||
last_update=last_update,
|
||||
)
|
||||
|
||||
def _get_pages_from_subsitemap(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue