We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a0116b commit 776ae1aCopy full SHA for 776ae1a
pyradio/common.py
@@ -384,7 +384,11 @@ def update_stations_csv(self, print_messages=True):
384
self.counts[2] += 1
385
self._stations.pop(self._stations.index(an_item))
386
for n in self.versions[k][1]:
387
- found = [x for x in self._stations if x[0] == n[1][n[0]]]
+ found = []
388
+ if n[0] == 0:
389
+ found = [x for x in self._stations if x[0] == n[1][0] and x[1] != n[1][1]]
390
+ elif n[0] == 1:
391
+ found = [x for x in self._stations if x[1] == n[1][1] and x[0] != n[1][0]]
392
if found:
393
if print_messages:
394
if PY3:
0 commit comments