From 9cad8aed9d8c510cfb2733c2364b6549df3e2339 Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Thu, 5 Nov 2015 03:44:43 +0000 Subject: [PATCH] Reduce cooldown time to 1 minute. --- companion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/companion.py b/companion.py index 77e49606..1d469a6c 100644 --- a/companion.py +++ b/companion.py @@ -16,7 +16,7 @@ if __debug__: from config import config -holdoff = 120 # be nice +holdoff = 60 # be nice timeout = 10 # requests timeout URL_LOGIN = 'https://companion.orerve.net/user/login' @@ -229,7 +229,7 @@ class Session: commodity = commodities[i] # Check all required numeric fields are present and are numeric - # Catches "demandBracket": "" for some phantom commodites in ED 1.3 + # Catches "demandBracket": "" for some phantom commodites in ED 1.3 - https://github.com/Marginal/EDMarketConnector/issues/2 for thing in ['buyPrice', 'sellPrice', 'demand', 'demandBracket', 'stock', 'stockBracket']: if not isinstance(commodity.get(thing), numbers.Number): if __debug__: print 'Invalid "%s":"%s" (%s) for "%s"' % (thing, commodity.get(thing), type(commodity.get(thing)), commodity.get('name', ''))