use my.config instead of mycfg; minor cleanups and docstrings

This commit is contained in:
Dima Gerasimov 2020-04-12 00:18:48 +01:00 committed by karlicoss
parent f31ff71e6f
commit e5b3a1e91e
37 changed files with 142 additions and 110 deletions

View file

@ -1,7 +1,11 @@
import mycfg.repos.stexport.model as stexport
from mycfg import paths
'''
Stackexchange data
'''
import my.config.repos.stexport.model as stexport
from my.config import stackexchange as config
def get_data():
sources = [max(paths.stexport.export_dir.glob('*.json'))]
sources = [max(config.export_dir.glob('*.json'))]
return stexport.Model(sources).site_model('stackoverflow')