Skip to content

Commit

Permalink
add info about workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
interrogator committed Dec 3, 2019
1 parent 1916ca2 commit 95bbf33
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions explorer/parts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ def _get_corpora(corpus_meta):
corpora_config[corpus.slug] = conf
return corpora, tables, corpora_config


# this is a workaround to stop migrate.py from loading corpora.
# if you don't want to load corpora, comment out the call to _get_corpora_meta.
# if you do want to load corpora, leave it uncommented.
# CORPUS_META = dict()
CORPUS_META = _get_corpora_meta(GLOBAL_CONFIG.get("corpora_file"))

CORPORA, INITIAL_TABLES, CORPORA_CONFIGS = _get_corpora(CORPUS_META)
Expand Down

0 comments on commit 95bbf33

Please sign in to comment.