Import private reddit data provider, use rexport model

This commit is contained in:
Dima Gerasimov 2019-09-29 16:41:04 +01:00
parent c2abca3bda
commit 5295759949
2 changed files with 72 additions and 125 deletions

View file

@ -8,8 +8,6 @@ def hypexport():
from .common import import_file
return import_file(Path(paths.hypexport.repo) / 'model.py')
Annotation = hypexport().Annotation
def get_model():
export_dir = Path(paths.hypexport.export_dir)
sources = list(sorted(export_dir.glob('*.json')))
@ -17,6 +15,9 @@ def get_model():
return model
Annotation = hypexport().Annotation
from typing import Dict, List, NamedTuple, Optional, Sequence
from pathlib import Path
from datetime import datetime