core: add modules_ast for more robust module collection
This commit is contained in:
parent
63c825ab81
commit
571cb48aea
10 changed files with 48 additions and 16 deletions
|
@ -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__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue