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

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

View file

@ -42,6 +42,8 @@ class TicketCountCollector(object):
def collect(self): def collect(self):
counter = CounterMetricFamily("c3lf_ticket_count", "Current number of tickets", labels=['event', 'event_id']) counter = CounterMetricFamily("c3lf_ticket_count", "Current number of tickets", labels=['event', 'event_id'])
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 +55,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)