Skip to content

Commit

Permalink
Merge pull request #205 from dianakolusheva/all_statements
Browse files Browse the repository at this point in the history
Fix all statements bug
  • Loading branch information
bgyori committed Mar 11, 2021
2 parents 4752707 + 6cb2144 commit d789c7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion emmaa_service/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,10 @@ def get_all_statements_page(model):
stmt_counts_dict = Counter()
test_corpora = _get_test_corpora(model)
for test_corpus in test_corpora:
test_stats, _ = _load_test_stats_from_cache(model, test_corpus, date)
test_date = last_updated_date(model, 'test_stats', 'date', test_corpus,
extension='.json')
test_stats, _ = _load_test_stats_from_cache(
model, test_corpus, test_date)
stmt_counts = test_stats['test_round_summary'].get(
'path_stmt_counts', [])
stmt_counts_dict += Counter(dict(stmt_counts))
Expand Down

0 comments on commit d789c7c

Please sign in to comment.