Esempio n. 1
0
def user_summary(storages, output_dir: Path):
    for src, st in group_by_key(storages, key=lambda s: s.source).items():
        rtype = the(get_result_type(x) for x in st)
        outf = output_dir / (For(src).name + '_users.html')
        user_summary_for(rtype=rtype, storages=st, output_path=outf)
Esempio n. 2
0
def For(res):
    return the([F for F in Fors if res == F.Target])
Esempio n. 3
0
 def interactions(self):
     th = the(self.items)
     return th.points + th.comments
Esempio n. 4
0
 def the(self):
     return the(self.items)
Esempio n. 5
0
 def interactions(self):
     th = the(self.items)
     return th.replies + th.retweets + th.likes
Esempio n. 6
0
 def format(self):
     item = the(self.items)
     return self.FTrait.format_one(item)
Esempio n. 7
0
 def link(cls, objs):
     return the(o.link for _, o in objs)