-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgenerate_raw_csvs.py
51 lines (35 loc) · 1.22 KB
/
generate_raw_csvs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import parsers.sk8stuff as sk8stuff
import parsers.arena_guide as arena_guide
import parsers.learntoskate as lts
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--source", help="show some useful help text")
args = vars(parser.parse_args())
def generate_lts():
print('Generating RAW CSV for LTS...')
path = '/tmp/ice-maker_raw_csv_lts.csv'
lts.lts_csv(path)
print('Complete! CSV located at', path)
def generate_sk8stuff():
print('Generating RAW CSV for Sk8Stuff...')
path = '/tmp/ice-maker_raw_csv_sk8stuff.csv'
sk8stuff.sk8stuff_csv(path)
print('Complete! CSV located at', path)
def generate_arena_guide():
print('Generating RAW CSV for Arena-Guide...')
print('This report can take around 20 minutes to create...')
path = '/tmp/ice-maker_raw_csv_arena-guide.csv'
arena_guide.arena_guide_csv(path)
print('Complete! CSV located at', path)
if args['source'] == 'sk8stuff':
generate_sk8stuff()
elif args['source'] == 'arena_guide':
generate_arena_guide()
elif args['source'] == 'lts':
generate_lts()
elif args['source'] == 'all':
generate_sk8stuff()
generate_arena_guide()
generate_lts()
else:
print('No Known Source Specified')