def add_afsc(dict, fname):
"""
Add AFSCs from given filename into the dictionary.
:param dict: empty dictionary
:param fname: CSV file using '#' as delimiter
"""
with open(CSV_FOLDER + fname, newline='') as f:
reader = csv.reader(f, delimiter='#')
for row in reader:
base_afsc = row[0]
job_title = row[1]
afsc_dict = {"base_afsc": base_afsc,
"job_title": job_title,
"shreds": {},
"link": ""}
dict[base_afsc] = afsc_dict
评论列表
文章目录