Terry Zhuo commited on
Commit
92a3a93
·
1 Parent(s): 19bdd62
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ def get_file_data(content: str) -> tuple[str, str, bool]:
53
  relevant_lines = lines[:vote_line_index + 1]
54
  vote_conditions_met = (
55
  isinstance(feedback, dict) and
56
- len(feedback) == 6 and
57
  len(relevant_lines) >= 4
58
  )
59
  except (json.JSONDecodeError, TypeError):
 
53
  relevant_lines = lines[:vote_line_index + 1]
54
  vote_conditions_met = (
55
  isinstance(feedback, dict) and
56
+ len([1 for v in feedback.values() if v]) == 6 and
57
  len(relevant_lines) >= 4
58
  )
59
  except (json.JSONDecodeError, TypeError):