Skip to content

Commit

Permalink
Fix corpus loading
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Aug 18, 2017
1 parent 4fae224 commit 34f8cf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rancher-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ version: '2'
services:
pyramid:
scale: 1
worker:
scale: 2
2 changes: 1 addition & 1 deletion src/eea.corpus/eea/corpus/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def get_corpus(request, doc=None, corpus_id=None):
if not (doc and corpus_id):
doc, corpus_id = extract_corpus_id(request)

if (doc not in cache) and (corpus_id not in cache.get(doc, [])):
if corpus_id not in cache.get(doc, []):
corpus = load_corpus(file_name=doc, corpus_id=corpus_id)

if corpus is None:
Expand Down

0 comments on commit 34f8cf8

Please sign in to comment.