Skip to content

Commit

Permalink
fix: csgo parse team members (#36)
Browse files Browse the repository at this point in the history
Signed-off-by: Dup4 <lyuzhi.pan@gmail.com>
  • Loading branch information
Dup4 authored Oct 20, 2024
1 parent ca56dde commit 6937671
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ name: Test

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:

env:
Expand Down
6 changes: 5 additions & 1 deletion xcpcio_board_spider/spider/csg_cpc/v1/csg_cpc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os
import re
import typing

import requests
Expand Down Expand Up @@ -91,7 +92,10 @@ def parse_teams(self):

name = raw_team["name"]
school = raw_team["school"]
members = raw_team["tmember"].split("、")

members = re.split(r'[,、\s]+', raw_team["tmember"])
members = [member.strip() for member in members]

coach = str(raw_team["coach"])
kind = int(raw_team["tkind"])
room = str(raw_team["room"])
Expand Down

0 comments on commit 6937671

Please sign in to comment.