Deepsource Job: e417c302 (#13)

* DS: PY-W0069

* DS: FLK-E501
This commit is contained in:
2022-07-10 15:07:03 +01:00
committed by GitHub
parent fcdb8784e1
commit b75300de8e
3 changed files with 6 additions and 25 deletions

View File

@ -44,13 +44,13 @@ def main():
as_number = get_autonomous_system_number(ip_info.get("as"))
# Assemble list for table generation
country = ip_info.get("country")
region = ip_info.get("regionName")
city = ip_info.get("city")
table_data = [
["IP Address", ip_info.get("query")],
["Organization", ip_info.get("org")],
[
"Location",
f"{ip_info.get('country')}/{ip_info.get('regionName')}/{ip_info.get('city')}",
],
["Location", f"{country}/{region}/{city}"],
["Timezone", ip_info.get("timezone")],
["Internet Service Provider", ip_info.get("isp")],
["Autonomous System", as_number],