Allow checking account ID whitelist

This commit is contained in:
2023-03-10 15:04:39 +00:00
parent ef546ce21b
commit 9b6180ac5b
5 changed files with 40 additions and 6 deletions

View File

@@ -12,14 +12,17 @@ log = logs.get_logger("polling")
INTERVAL = 5
async def poll_aggregator(aggregator):
print("Polling aggregator", aggregator)
async def poll_platform(platform):
print("Polling platform", platform)
client = await AgoraClient(platform)
await client.poll()
async def job():
platforms = Platform.objects.filter(enabled=True)
aggregators = Aggregator.objects.filter(enabled=True)