Skip to content

Commit

Permalink
Removed Counting Error in online tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hash3liZer committed Nov 13, 2018
1 parent e903759 commit 7135696
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions subrake.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,15 @@ def add(self, _subs, service):
self.SUBDOMAINS.append(data)

def pushtoscreen(self, _subs, service, error):
_counter = []
_counter, _count = [], 0
for sub in _subs:
if sub not in _counter:
_count += 1
_counter.append(sub)

string = "{:<14}\t{:<28}".format(service, str(len(_subs)))
string = "{:<14}\t{:<28}".format(service, str(_count))
pull.indent(string, spaces=4)


def _domainer(_dm):
if _dm != None:
if re.match("^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]\.[a-zA-Z]{2,}$", _dm.lower(), re.I):
Expand Down

0 comments on commit 7135696

Please sign in to comment.