add container to testdata.py
Some checks failed
/ test (push) Successful in 2m43s
/ deploy (push) Failing after 3m11s

This commit is contained in:
j3d1 2024-12-27 21:07:09 +01:00
parent f6455638d7
commit f2c29b237b

View file

@ -12,8 +12,6 @@ class ItemCountCollector(object):
def collect(self): def collect(self):
counter = CounterMetricFamily("item_count", "Current number of items", labels=['event', 'returned_state']) counter = CounterMetricFamily("item_count", "Current number of items", labels=['event', 'returned_state'])
yield counter
if not apps.models_ready or not apps.apps_ready: if not apps.models_ready or not apps.apps_ready:
return return
@ -53,8 +51,6 @@ class TicketCountCollector(object):
yield counter yield counter
try:
REGISTRY.register(ItemCountCollector()) REGISTRY.register(ItemCountCollector())
REGISTRY.register(TicketCountCollector()) REGISTRY.register(TicketCountCollector())
except Exception as e:
print(e)