Skip to content

Commit

Permalink
generate cfc id list correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-zheng-codes committed Jan 9, 2024
1 parent f176328 commit e09667b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 64,831 deletions.
17 changes: 12 additions & 5 deletions bin/generate_CFC.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,14 @@ def generate_cfc_ids_list(self) -> []:
"""

id_list = []
with open(self.output_file, 'r') as f:
while f.readline() != "":
id_list.append()
file = open(self.output_file, 'r')
lines = file.readlines()

count = 0
# Strips the newline character
for line in lines:
count += 1
print("Line{}: {}".format(count, line.split(",")[0]))


class CFCPlayerData:
Expand Down Expand Up @@ -127,5 +131,8 @@ def generate_all_players(self, max_id: int):
# format for the period is yyyy-mm-dd
self.generate_player_data(i)

data = CFCPlayerData()
data.generate_player_data(150768)
# data = CFCPlayerData()
# data.generate_player_data(150768)

td_list = TDList(True)
td_list.generate_cfc_ids_list()
Loading

0 comments on commit e09667b

Please sign in to comment.