From 4d4258ccb17d0faac0a35fe0b170ac61d13a7890 Mon Sep 17 00:00:00 2001 From: Tobias Bernard Date: Wed, 10 Apr 2024 00:23:01 +0200 Subject: [PATCH 1/2] metainfo: add brand colors --- data/io.github.bytezz.IPLookup.appdata.xml.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/io.github.bytezz.IPLookup.appdata.xml.in b/data/io.github.bytezz.IPLookup.appdata.xml.in index a4bc777..d6c64ea 100644 --- a/data/io.github.bytezz.IPLookup.appdata.xml.in +++ b/data/io.github.bytezz.IPLookup.appdata.xml.in @@ -52,6 +52,11 @@ https://github.com/bytezz/iplookup-gtk https://github.com/Bytezz/IPLookup-gtk/tree/main/po + + #99c1f1 + #123d72 + + mobile From 7d72ac650559d6929386ffe3a0a4d5465f5f23b9 Mon Sep 17 00:00:00 2001 From: lori <125378211+lr1ne@users.noreply.github.com> Date: Sat, 13 Apr 2024 19:25:13 +0400 Subject: [PATCH 2/2] mini shitcode --- src/ipapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipapi.py b/src/ipapi.py index 9999fc7..5757444 100644 --- a/src/ipapi.py +++ b/src/ipapi.py @@ -37,7 +37,7 @@ def get_ip_info(ip): ip = ip.strip() result = {} - if ip != "": + if ip: result = json.loads(urlopen("http://ip-api.com/json/{}".format(ip)).read()) return result