Skip to content

Commit

Permalink
minor fix for kos web source
Browse files Browse the repository at this point in the history
  • Loading branch information
DYefremov committed Aug 2, 2024
1 parent fa1ec4c commit 2a8ddc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/tools/satellites.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,8 @@ def get_service_data(s_type, pkg, sid, tid, nid, namespace, v_pid, a_pid, cas, u
picon_id = f"1_0_{int(s_type):X}_{sid}_{tid}_{nid}_{namespace}_0_0_0.png"
# Flags.
flags = f"p:{pkg}"
cas = ",".join(get_key_by_value(CAS, c) or "C:0000" for c in cas.split()) if cas else None
cas = ",".join(get_key_by_value(CAS, c) or "" for c in cas.split()) if cas else None

if use_pids:
v_pid = f"c:00{int(v_pid):04x}" if v_pid else None
a_pid = ",".join([f"c:01{int(p):04x}" for p in a_pid]) if a_pid else None
Expand Down

0 comments on commit 2a8ddc0

Please sign in to comment.