Archived
1
0
Fork 0

Update update.py

This commit is contained in:
多羅狼 2024-02-18 23:04:02 +08:00 committed by GitHub
parent bc0f00efe1
commit c60bcc656f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,7 +71,7 @@ async def update_assets():
ca = random_cache_path()
shutil.unpack_archive(download_file, ca)
with open(os.path.join(ca, 'PhigrosLibrary-master', 'difficulty.tsv'), 'r', encoding='utf-8') as f:
with open(os.path.join(ca, 'PhigrosLibrary-main', 'difficulty.tsv'), 'r', encoding='utf-8') as f:
reader = csv.DictReader(f, delimiter='\t')
for row in reader:
data[row['Name'].lower()] = {'EZ': row['EZ'], 'HD': row['HD'], 'IN': row['IN']}