Add nicer debug logging

master
Mark Veidemanis 2 years ago
parent 8dc1e83d0a
commit 059c723cc1
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -429,6 +429,7 @@ class LocalPlatformClient(ABC):
async def cheat(self, assets=None):
# Get all public ads for the given assets
log.debug(f"Running cheat for {self.instance.name}")
public_ads = await self.get_all_public_ads(assets)
if not public_ads:
return False

@ -28,7 +28,6 @@ async def aggregator_job():
async def platform_job(interval):
print("PLATFORM JOB FOR", interval)
if interval == 0:
return
platforms = Platform.objects.filter(enabled=True, cheat_interval_seconds=interval)

Loading…
Cancel
Save