Commit b3e1b142 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

[FIX] (util/csbusortdirlist.py): fix counter increment

increment operator was not working as expected
parent 8e5c3f29
...@@ -112,17 +112,19 @@ class Basetable(): ...@@ -112,17 +112,19 @@ class Basetable():
""" """
Take an additional path for the current collection Take an additional path for the current collection
""" """
if pathline.year in self.years.keys(): if pathline.year in list(self.years.keys()):
++self.years[pathline.year] self.years[pathline.year] = self.years[pathline.year]+1
else: else:
self.years[pathline.year]=1 self.years[pathline.year]=1
if pathline.channel in self.channels.keys():
++self.channels[pathline.channel] if pathline.channel in list(self.channels.keys()):
self.channels[pathline.channel] = self.channels[pathline.channel]+1
else: else:
self.channels[pathline.channel]=1 self.channels[pathline.channel]=1
count=(pathline.year, pathline.channel) count=(pathline.year, pathline.channel)
if count in self.counts.keys(): if count in list(self.counts.keys()):
++self.counts[count] self.counts[count] = self.counts[count]+1
else: else:
self.counts[count]=1 self.counts[count]=1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment