Skip to content

Commit 7f16c6a

Browse files
committed
2 parents 38edc5c + c68b95c commit 7f16c6a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/analyzer.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ def get_keywords_count(self) -> dict:
2727
if word in keywords:
2828
keywords[word]['count'] += 1
2929
else:
30-
keywords[word]['count'] = 1
30+
keywords[word] = {
31+
'count': 1,
32+
'sources': [],
33+
'positions': []
34+
}
3135

3236
if article.source not in keywords[word]['sources']:
3337
keywords[word]['sources'].append(article.source)

0 commit comments

Comments
 (0)