Commit bef8680b authored by Ryan Herbert's avatar Ryan Herbert
Browse files use correct prefix for extracting clones

due to the error in the prefix usage, we were extracting all clones from
the file instead of the top N, leading to horrendous performance issues.
parent 5caabd5d
...@@ -718,7 +718,7 @@ def main(): ...@@ -718,7 +718,7 @@ def main():
f = [] f = []
vparser = VidjilParser() vparser = VidjilParser()
vparser.addPrefix('clones', '', le, vparser.addPrefix('clones.item', '', le,
for path_name in files: for path_name in files:
json_clones = vparser.extract(path_name) json_clones = vparser.extract(path_name)
clones = json.loads(json_clones) clones = json.loads(json_clones)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment