Skip to content
Permalink
Browse files

Merge pull request #1508 from mozilla/fixup_geopi

Remove call to lower for geoip plugin
  • Loading branch information
pwnbus committed Oct 28, 2019
2 parents aa46c63 + 5db546f commit b6843d6765fafcfdf348ab86db4e96939f1eddcf
Showing with 2 additions and 2 deletions.
  1. +2 −2 mq/plugins/geoip.py
@@ -56,8 +56,8 @@ def onMessage(self, message, metadata):
message['details'][geo_key] = self.ipLocation(ipText)
# Add a geo_point coordinates if latitude and longitude exist
if 'latitude' in message['details'][geo_key] and 'longitude' in message['details'][geo_key]:
if message['details'][geo_key]['latitude'] != '' and message['details'][geo_key]['latitude'].lower() != 'none' and \
message['details'][geo_key]['longitude'] != '' and message['details'][geo_key]['latitude'].lower() != 'none':
if message['details'][geo_key]['latitude'] != '' and message['details'][geo_key]['latitude'] != 'None' and \
message['details'][geo_key]['longitude'] != '' and message['details'][geo_key]['latitude'] != 'None':
geopoint_key = '{0}ipgeopoint'.format(key)
message['details'][geopoint_key] = '{0},{1}'.format(
message['details'][geo_key]['latitude'],

0 comments on commit b6843d6

Please sign in to comment.
You can’t perform that action at this time.