diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-05-11 12:43:38 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-05-11 12:43:38 +1000 |
| commit | 4872ce9c22cc3c7024075f66409efdaf8860e9b8 (patch) | |
| tree | f47f0683a2260ac4a41062615e344d1c9b847c3c /backend/data/downloadImgsForReview.py | |
| parent | 6c61612564b9a30f747207c43729c3e7e8cbf0d3 (diff) | |
Do minor code cleanup
Diffstat (limited to 'backend/data/downloadImgsForReview.py')
| -rwxr-xr-x | backend/data/downloadImgsForReview.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/data/downloadImgsForReview.py b/backend/data/downloadImgsForReview.py index 03e22a8..d5ccf62 100755 --- a/backend/data/downloadImgsForReview.py +++ b/backend/data/downloadImgsForReview.py @@ -66,10 +66,10 @@ if not os.path.exists(outDir): print("Finding next ID to download for") nextIdx = 0 fileList = os.listdir(outDir) -ids = list(map(lambda filename: int(filename.split(" ")[0]), fileList)) +ids = [int(filename.split(" ")[0]) for filename in fileList] if len(ids) > 0: ids.sort() - nextIdx = eolIds.index(ids[-1]) + nextIdx = eolIds.index(ids[-1]) + 1 if nextIdx == len(eolIds): print("No IDs left. Exiting...") sys.exit(0) |
