Skip to content
Snippets Groups Projects
Commit 96272964 authored by Maeva Pourpoint's avatar Maeva Pourpoint
Browse files

Fix byte-strings display issue

parent 8887092b
No related branches found
No related tags found
1 merge request!9Fix byte-string display issue when selecting "Unique" display
...@@ -933,12 +933,11 @@ class MainWindow: ...@@ -933,12 +933,11 @@ class MainWindow:
# if verbose == 3: # if verbose == 3:
(SeqNum, DHQual, res, Stat, Loc, Chan, Net) = hdrs[0] (SeqNum, DHQual, res, Stat, Loc, Chan, Net) = hdrs[0]
Rate = str(self.RateDict[n]) Rate = str(self.RateDict[n])
Stat = Stat.strip() Stat = Stat.strip().decode()
Chan = Chan.strip() Chan = Chan.strip().decode()
Loc = Loc.strip(Loc) Loc = Loc.strip().decode()
Net = Net.strip(Net) Net = Net.strip().decode()
key = str(Stat) + ":" + str(Chan) + ":" + \ key = ":".join([Stat, Chan, Loc, Net, Rate])
str(Loc) + ":" + str(Net) + ":" + str(Rate)
# if key in self.keyList: # if key in self.keyList:
if key == lastkey: if key == lastkey:
pass pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment