use my.config instead of mycfg; minor cleanups and docstrings
This commit is contained in:
parent
f31ff71e6f
commit
e5b3a1e91e
37 changed files with 142 additions and 110 deletions
|
@ -2,6 +2,7 @@
|
|||
Phone calls and SMS messages
|
||||
"""
|
||||
# TODO extract SMS as well? I barely use them though..
|
||||
from . import init
|
||||
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
|
@ -12,7 +13,7 @@ from lxml import etree # type: ignore
|
|||
|
||||
from .common import get_files
|
||||
|
||||
from mycfg import paths
|
||||
from my.config import smscalls as config
|
||||
|
||||
|
||||
class Call(NamedTuple):
|
||||
|
@ -40,7 +41,7 @@ def _extract_calls(path: Path) -> Iterator[Call]:
|
|||
|
||||
|
||||
def calls() -> Iterator[Call]:
|
||||
files = get_files(paths.smscalls.export_path, glob='calls-*.xml')
|
||||
files = get_files(config.export_path, glob='calls-*.xml')
|
||||
|
||||
# TODO always replacing with the latter is good, we get better contact names??
|
||||
emitted: Set[datetime] = set()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue