diff --git a/gstlal-inspiral/python/lloidhandler.py b/gstlal-inspiral/python/lloidhandler.py index e9d8c1da36c6c6dcdf931fba4b4bfb781935c162..3db20fb927276b1a46ab7d1daac793aa6efb3fd5 100644 --- a/gstlal-inspiral/python/lloidhandler.py +++ b/gstlal-inspiral/python/lloidhandler.py @@ -987,8 +987,8 @@ class LLOIDTracker: def web_get_remove_counts(self): with self.lock: - if self.remove_counts != []: - string = ",".join(str(x) for x in self.remove_counts) + if len(self.rankingstat.denominator.remove_counts_times) > 0: + string = ",".join(str(x) for x in self.rankingstat.denominator.remove_counts_times) yield "gps_time=%s\n" % string else: yield "gps_time=\n" @@ -999,7 +999,7 @@ class LLOIDTracker: gps_time = bottle.request.forms["gps_time"] if gps_time is not None: self.remove_counts_times.append(int(gps_time)) - self.rankingstat.denominator.remove_counts_times.append(int(gps_time)) + self.rankingstat.denominator.remove_counts_times = numpy.append(self.rankingstat.denominator.remove_counts_times, int(gps_time)) yield "OK: gps_time=%d\n" % gps_time else: yield "OK: gps_time=\n"