Loading botscout/forms.py +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ class BotScoutForm(object): 'mail': data.get(email_field, None)} if using_ip: test_data['ip'] = self.request.META.get('REMOTE_ADDR', None) test_data = dict((x, y) for x, y in test_data.iteritems() if y is not None) test_data = dict((x, y.strip()) for x, y in test_data.iteritems() if y is not None) cached_data = bot_cache.get_many(['botscout:%s:%s' % (x, hashlib.sha256(y).hexdigest()) for x, y in test_data.iteritems()]) if any(cached_data.values()): Loading Loading
botscout/forms.py +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ class BotScoutForm(object): 'mail': data.get(email_field, None)} if using_ip: test_data['ip'] = self.request.META.get('REMOTE_ADDR', None) test_data = dict((x, y) for x, y in test_data.iteritems() if y is not None) test_data = dict((x, y.strip()) for x, y in test_data.iteritems() if y is not None) cached_data = bot_cache.get_many(['botscout:%s:%s' % (x, hashlib.sha256(y).hexdigest()) for x, y in test_data.iteritems()]) if any(cached_data.values()): Loading