Skip to content

Commit 2e5cd41

Browse files
committed
Fix type inconsistency with explicit conversion
1 parent e909379 commit 2e5cd41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

thoth/storages/sync.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,8 @@ def sync_inspection_documents(
418418
number_results = inspection_store.results.get_results_count()
419419
else:
420420
main_repo = Path(f"{inspection_document_id}/results")
421-
results = [repo.name for repo in main_repo.iterdir()]
421+
results = [int(repo.name) for repo in main_repo.iterdir()]
422+
# dir entry should be numbers
422423

423424
if number_results > 0:
424425

0 commit comments

Comments
 (0)