Skip to content

Commit

Permalink
returning json strings instead of dicts was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
sroberts committed Aug 8, 2014
1 parent 7fc6b95 commit 5b749c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utilitybelt.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def domain_to_geo(domain):

geo = gi.record_by_name(domain)

return json.dumps(geo)
return geo

def ip_to_geojson(ipaddress, name="Point"):
"""Generate GeoJSON for given IP address"""
Expand All @@ -64,7 +64,7 @@ def ip_to_geojson(ipaddress, name="Point"):
]
}

return json.dumps(point)
return point

def ips_to_geojson(ipaddresses):
"""Generate GeoJSON for given IP address"""
Expand Down Expand Up @@ -93,7 +93,7 @@ def ips_to_geojson(ipaddresses):
"features": features
}

return json.dumps(points)
return points

def reverse_dns_sna(ipaddress):
"""Returns a list of the dns names that point to a given ipaddress using StatDNS API"""
Expand Down

0 comments on commit 5b749c2

Please sign in to comment.