Skip to content

Commit

Permalink
Minor fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-damle committed Sep 2, 2024
1 parent 12d0487 commit 6108876
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pebblo/app/service/local_ui/loader_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,10 @@ def _findings_for_app_entities(
"""
This function finds findings for apps with entities
"""
for entity, entity_data in app_data.get("docEntities").items():
for entity, entity_data in app_data.get("docEntities", {}).items():
try:
entity_count += entity_data.get("count")
self.loader_findings += entity_data.get("count")

findings_exists = False
for findings in self.loader_findings_list:
if findings.get("labelName") == entity:
Expand Down Expand Up @@ -131,7 +130,7 @@ def _findings_for_app_topics(
"""
This function finds findings for apps with topics
"""
for topic, topic_data in app_data.get("docTopics").items():
for topic, topic_data in app_data.get("docTopics", {}).items():
try:
topic_count += topic_data.get("count")
self.loader_findings += topic_data.get("count")
Expand Down

0 comments on commit 6108876

Please sign in to comment.