abinazebinoy commited on
Commit
1a8094a
·
1 Parent(s): 05ed738

fix(NEW-3): expand _FEED_LABELS from 6 to 14 node types

Browse files

Live feed only showed AuditReport, EnforcementAction, RegulatoryOrder,
ElectoralBond, Contract, VigilanceCircular. Politician updates, Company
registrations, CourtCases, Tenders, NGO actions, PressReleases,
InsolvencyOrders, and SanctionedEntity records never appeared in the
feed even when the graph was fully populated.

Files changed (1) hide show
  1. api/main.py +4 -0
api/main.py CHANGED
@@ -183,9 +183,13 @@ def get_stats():
183
  return result
184
 
185
 
 
 
186
  _FEED_LABELS = [
187
  "AuditReport", "EnforcementAction", "RegulatoryOrder",
188
  "ElectoralBond", "Contract", "VigilanceCircular",
 
 
189
  ]
190
 
191
 
 
183
  return result
184
 
185
 
186
+ # NEW-3 FIX: expanded from 6 to 14 types -- Politician, Company, CourtCase etc
187
+ # were never appearing in the live feed even when the graph was fully populated
188
  _FEED_LABELS = [
189
  "AuditReport", "EnforcementAction", "RegulatoryOrder",
190
  "ElectoralBond", "Contract", "VigilanceCircular",
191
+ "Politician", "Company", "CourtCase", "Tender",
192
+ "NGO", "PressRelease", "InsolvencyOrder", "SanctionedEntity",
193
  ]
194
 
195