[FIX] Fix multi-individual ancestor download.
authorFred Wright <fw@fwright.net>
Tue, 19 Jan 2021 22:03:34 +0000 (14:03 -0800)
committerLinekio <benoitfontaine.ba@gmail.com>
Fri, 29 Jan 2021 12:59:19 +0000 (13:59 +0100)
The 'todo' variable for the ancestor download needs to be a set,
not the original comma-separated string.

TESTED:
Downloads of multiple individuals now include ancestors when
appropriate.

getmyancestors.py

index a121a3229e169ca1e28d89d954db84efce68afb6..86c29df81cbf0e303f8d10f6e56e0368630d5b6d 100755 (executable)
@@ -1214,7 +1214,7 @@ def main():
         tree.add_indis(todo)
 
         # download ancestors
-        todo = set(todo)
+        todo = set(tree.indi.keys())
         done = set()
         for i in range(args.ascend):
             if not todo: