Import private reddit data provider, use rexport model
This commit is contained in:
parent
c2abca3bda
commit
5295759949
2 changed files with 72 additions and 125 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue