Terry Zhuo commited on
Commit
9ded9c4
·
1 Parent(s): 1023ad8
Files changed (1) hide show
  1. azure_count_ip_data.py +1 -1
azure_count_ip_data.py CHANGED
@@ -160,7 +160,7 @@ def get_file_data(content: str) -> Tuple[Optional[str], Optional[str], bool]:
160
  """Read file content and return IP, username, and vote condition status"""
161
  try:
162
  lines = [line.strip() for line in content.split('\n') if line.strip()]
163
- user_prompt = lines[0]["state"]["messages"][0][1]
164
  if not lines:
165
  return None, None, False, user_prompt
166
 
 
160
  """Read file content and return IP, username, and vote condition status"""
161
  try:
162
  lines = [line.strip() for line in content.split('\n') if line.strip()]
163
+ user_prompt = json.loads(lines[0])["state"]["messages"][0][1]
164
  if not lines:
165
  return None, None, False, user_prompt
166