dwh_spota: KK prodi pakai singkatan AI/NS/SE/IS

1 = AI (Computation & Artificial Intelligence), 2 = NS (Networking & Security),
3 = SE (Software Engineering & Mobile Computing), 4 = IS (Information System & Data Spatial).
KK lain tetap memakai nama dari getListKK, atau "KK <id>" bila tidak terbaca.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Power BI Dev
2026-10-20 15:27:09 +07:00
co-authored by Claude Opus 5.5
parent ddf7ed0a17
commit 7d5a19344b
2 changed files with 9 additions and 12 deletions
+3 -3
View File
@@ -86,12 +86,12 @@ def _waktu(v) -> datetime | None:
def _kk_rows() -> list:
"""(id, nama) kelompok keahlian dari getListKK. Bentuk responsnya tidak terdokumentasi, jadi nama kolom
dicari dari beberapa kemungkinan; bila gagal, staging memakai daftar cadangan (lihat dwh_spota_sql.py)."""
"""(id, nama) kelompok keahlian dari getListKK, untuk KK selain 4 KK prodi yang memakai singkatan tetap
(lihat dwh_spota_sql.py). Bentuk responsnya tidak terdokumentasi, jadi nama kolom dicari dari beberapa kemungkinan."""
try:
data = _spota_get("getListKK.php")
except Exception as exc: # noqa: BLE001 - KK hanya label, jangan gagalkan seluruh load
logger.warning("getListKK tidak terbaca, pakai daftar KK cadangan: %s", exc)
logger.warning("getListKK tidak terbaca, KK selain AI/NS/SE/IS tampil sebagai 'KK <id>': %s", exc)
return []
rows = []
for k in data: