HPI/my/github/all.py
Dima Gerasimov ca39187c63 github: DEPRECATE my.coding.github
Instead my.github.all should be used (still backward compatible)

The reasons are
a) I don't feel that grouping (i.e. my.coding.*) makes much sense
b) using .all pattern (same way as twitter) allows for more composable and cleaner separation of GDPR and API data
2020-06-01 22:49:31 +01:00

17 lines
448 B
Python

from . import gdpr, ghexport
from .common import merge_events, Results
def events() -> Results:
yield from merge_events(
gdpr.events(),
ghexport.events(),
)
# todo hmm. not sure, maybe should be named sorted_events or something..
# also, not great that it's in all.py... think of a better way...
def get_events() -> Results:
from ..core.error import sort_res_by
return sort_res_by(events(), key=lambda e: e.dt)