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

[FIX] (util/ 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 in self.channels.keys():
++self.channels[] if in list(self.channels.keys()):
self.channels[] = self.channels[]+1
else: else:
self.channels[]=1 self.channels[]=1
count=(pathline.year, count=(pathline.year,
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