core: add modules_ast for more robust module collection

This commit is contained in:
Dima Gerasimov 2020-12-11 03:40:31 +00:00 committed by karlicoss
parent 63c825ab81
commit 571cb48aea
10 changed files with 48 additions and 16 deletions

View file

@ -47,6 +47,5 @@ def parse_dt(s: str) -> datetime:
# TODO isoformat?
return pytz.utc.localize(datetime.strptime(s, '%Y-%m-%dT%H:%M:%SZ'))
# TODO not sure
# def get_events() -> Iterable[Res[Event]]:
# return sort_res_by(events(), key=lambda e: e.dt)
from ..core import __NOT_HPI_MODULE__