Terry Zhuo commited on
Commit
ec694e5
·
1 Parent(s): c28a31b
Files changed (1) hide show
  1. azure_count_ip_data.py +1 -1
azure_count_ip_data.py CHANGED
@@ -170,7 +170,7 @@ def get_file_data(content: str) -> Tuple[Optional[str], Optional[str], bool]:
170
  relevant_lines = lines[:vote_line_index + 1]
171
  vote_conditions_met = (
172
  isinstance(feedback, dict) and
173
- len(feedback) == 6 and
174
  len(relevant_lines) >= 4
175
  )
176
  except (json.JSONDecodeError, TypeError):
 
170
  relevant_lines = lines[:vote_line_index + 1]
171
  vote_conditions_met = (
172
  isinstance(feedback, dict) and
173
+ len([1 for v in feedback.values() if v]) == 6 and
174
  len(relevant_lines) >= 4
175
  )
176
  except (json.JSONDecodeError, TypeError):