Example #1
0
def _get_state(bfile: Path) -> Dict[Sid, SaveWithDt]:
    logger.debug('handling %s', bfile)

    bdt = _get_bdate(bfile)

    saves = [SaveWithDt(save, bdt) for save in rexport.DAL([bfile]).saved()]
    return make_dict(
        sorted(saves, key=lambda p: p.save.created),
        key=lambda s: s.save.sid,
    )
Example #2
0
def dal():
    # TODO lru cache? but be careful when it runs continuously
    return rexport.DAL(get_sources())
Example #3
0
File: reddit.py Project: alaq/HPI
def _dal() -> dal.DAL:
    inp = list(inputs())
    return dal.DAL(inp)
Example #4
0
def dal() -> rexport.DAL:
    return rexport.DAL(inputs())
Example #5
0
def _dal() -> dal.DAL:
    return dal.DAL(inputs())