aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-06-24 14:47:50 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-06-24 14:47:50 -0700
commitd98c3b95a7bb81fd239fd658d83a4d458673ca36 (patch)
treec964d699970e15e6abe8f1f160745eeb6509338c /python
parent135d262b3e92fc14d4e2572d4ea93f9980357c9b (diff)
downloadfatcat-d98c3b95a7bb81fd239fd658d83a4d458673ca36.tar.gz
fatcat-d98c3b95a7bb81fd239fd658d83a4d458673ca36.zip
fix syntax in existing.url cleanup
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_tools/importers/matched.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/matched.py b/python/fatcat_tools/importers/matched.py
index 4da1d646..2426c481 100644
--- a/python/fatcat_tools/importers/matched.py
+++ b/python/fatcat_tools/importers/matched.py
@@ -159,7 +159,7 @@ class MatchedImporter(EntityImporter):
# minimum viable "existing" URL cleanup to fix dupes and broken links:
# remove 'None' wayback URLs, and set archive.org rel 'archive'
existing.urls = [u for u in existing.urls if not ('://web.archive.org/web/None/' in u.url)]
- for i in len(existing.urls):
+ for i in range(len(existing.urls)):
u = existing.urls[i]
if u.rel == 'repository' and '://archive.org/download/' in u.url:
existing.urls[i].rel == 'archive'