From fb522756072a402ce93cf3c058f6ea2c4c220c7c Mon Sep 17 00:00:00 2001 From: markbaggett Date: Wed, 20 Jun 2018 17:09:19 -0400 Subject: [PATCH] fix api_hlp string error --- domain_stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/domain_stats.py b/domain_stats.py index b056bcd..105fb7a 100644 --- a/domain_stats.py +++ b/domain_stats.py @@ -46,7 +46,7 @@ def do_GET(self): cmdstr = re.search(r"[\/](created|alexa|domain)[\/].*$", urlpath) tgtstr = re.search(r"[\/](created|alexa|domain)[\/](.*)$", urlpath) if not cmdstr or not tgtstr: - api_hlp = 'API Documentation\nhttp://%s:%s/cmd/tgt cmd = domain, alexa or created tgt = domain name' % (self.server.server_address[0], self.server.server_address[1],self.server.server_address[0], self.server.server_address[1],self.server.server_address[0], self.server.server_address[1]) + api_hlp = 'API Documentation\nhttp://%s:%s/cmd/tgt cmd = domain or alexa tgt = domain name' % (self.server.server_address[0], self.server.server_address[1]) self.wfile.write(api_hlp.encode("latin-1")) return params = {} @@ -56,7 +56,7 @@ def do_GET(self): cmdstr=re.search("cmd=(?:domain|alexa|created)",urlparams) tgtstr = re.search("tgt=",urlparams) if not cmdstr or not tgtstr: - api_hlp = 'API Documentation\nhttp://%s:%s/cmd/tgt cmd = domain, alexa or created tgt = domain name' % (self.server.server_address[0], self.server.server_address[1],self.server.server_address[0], self.server.server_address[1],self.server.server_address[0], self.server.server_address[1]) + api_hlp = 'API Documentation\nhttp://%s:%s/cmd/tgt cmd = domain or alexa tgt = domain name' % (self.server.server_address[0], self.server.server_address[1]) self.wfile.write(api_hlp.encode("latin-1")) return params={}