Skip to content

Commit

Permalink
Use more modern format code for converting hex and fill with zeros
Browse files Browse the repository at this point in the history
  • Loading branch information
Littlesat committed Aug 2, 2024
1 parent 16de155 commit 059d73d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Components/NimManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ def getTunableReferences(self):
referenceList = []
for nim in self.nim_slots:
if nim.isCompatible("DVB-S") and not nim.isFBCLink():
for reference in [hex(satellite[0])[2:].zfill(4) for satellite in self.getSatListForNim(nim.slot)]:
for reference in [f"{satellite[0]:04x}" for satellite in self.getSatListForNim(nim.slot)]:
if reference not in referenceList:
referenceList.append(reference)
elif nim.isCompatible("DVB-C") and not nim.isFBCLink() and 'ffff' not in reflist:
Expand Down

0 comments on commit 059d73d

Please sign in to comment.