科目番号/科目名 | 109 |単位/年次 | 110 |学期/時期 | 111 |教室 | 112 |担当 | 113 |実施形態 | 114 |概要 | 115 |備考 | 116 |
---|
├── index.html ├── old ├── a ├── csv0.py ├── index.html ├── kdb.json ├── kdb_20210404.csv ├── kdb_20210404.xlsx ├── script.js └── style.css └── readme.md /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |This page is transferred to Make-IT-TSUKUBA/alternative-tsukuba-kdb (https://make-it-tsukuba.github.io/alternative-tsukuba-kdb/).
8 | 9 | -------------------------------------------------------------------------------- /old/a: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /old/csv0.py: -------------------------------------------------------------------------------- 1 | import csv 2 | import json 3 | 4 | output = [] 5 | headline = "" 6 | with open("kdb_202104042.csv", encoding="utf-8") as fp : 7 | reader = csv.reader(fp) 8 | 9 | for line in reader : 10 | line.pop(1) 11 | 12 | for i in range(5) : 13 | line.pop(11) 14 | 15 | isEmpty = False 16 | isHead = False 17 | 18 | if line[0] == "科目番号" : 19 | continue 20 | 21 | if line[0] == "" : 22 | isEmpty = True 23 | 24 | if not isEmpty and line[1] == "" : 25 | isHead = True 26 | 27 | if isHead : 28 | headline = line[0] 29 | print(line[0]) 30 | 31 | if isEmpty or isHead : 32 | continue 33 | 34 | if line[13] == "" : 35 | line.pop(13) 36 | if line[12] == "" : 37 | line.pop(12) 38 | 39 | line.append(headline) 40 | output.append(line) 41 | 42 | with open("kdb.json", "w", encoding="utf-8") as fp : 43 | json.dump(output, fp, indent="\t", ensure_ascii=False) 44 | -------------------------------------------------------------------------------- /old/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |科目番号/科目名 | 109 |単位/年次 | 110 |学期/時期 | 111 |教室 | 112 |担当 | 113 |実施形態 | 114 |概要 | 115 |備考 | 116 |
---|