Skip to content

Commit

Permalink
fix: parseLearnSheet should create /data directory if missing
Browse files Browse the repository at this point in the history
Since we deleted the changelog.vdf file this directory no longer exists, causing release CI to fail.
  • Loading branch information
tsa96 committed Feb 7, 2024
1 parent b13508c commit 15bbaf2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/parseLearnSheet.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import csv
import requests
from pathlib import Path

CSV_FILE = 'https://docs.google.com/spreadsheets/d/e/2PACX-1vTlH08v-dqtGl49T0Eslb56o-Y-xp6kOwhEo4Bwx387AxbpGHFw7AUBeBQMQdwEBI9g4gBBnGmUZ5EW/pub?output=csv'

Expand All @@ -13,6 +14,7 @@
else:
learnDataMap[row['Mode']] = [row]

Path('../data').mkdir(exist_ok=True)
with open( '../data/learn.vdf', 'w' ) as output:
output.write( '"Learn"\n' )
output.write( '{\n' )
Expand Down

0 comments on commit 15bbaf2

Please sign in to comment.