parent
b221e6a758
commit
88d6c6f3ce
|
@ -1,13 +1,7 @@
|
|||
from pprint import pprint
|
||||
|
||||
def maketree(descendants):
|
||||
try:
|
||||
lookup = [(descendant.id, descendant) for descendant in descendants]
|
||||
print(descendants[0][0])
|
||||
lookup = dict(descendants)
|
||||
except:
|
||||
pprint(lookup)
|
||||
raise
|
||||
lookup = dict((descendant.id, descendant) for descendant in descendants)
|
||||
replies = {}
|
||||
roots = set()
|
||||
for descendant in descendants:
|
||||
|
|
Loading…
Reference in New Issue