From e871a47440301fbbec0e32a7eed39a22ec2fe8e3 Mon Sep 17 00:00:00 2001 From: Evelina Diamantopoulou Date: Wed, 8 Jun 2022 17:39:33 +0300 Subject: [PATCH] add number of results in the end of the process --- sherlock/notify.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sherlock/notify.py b/sherlock/notify.py index a1afb9c7..cb3ff99a 100644 --- a/sherlock/notify.py +++ b/sherlock/notify.py @@ -5,8 +5,7 @@ results of queries. """ from result import QueryStatus from colorama import Fore, Style - -globvar = 0 +globvar = 0 # global variable to count the number of results. class QueryNotify: """Query Notify Object. @@ -186,7 +185,7 @@ class QueryNotifyPrint(QueryNotify): # return def countResults(self): - """Count the number of results. Every time the fuction is called, + """This function counts the number of results. Every time the fuction is called, the number of results is increasing. Keyword Arguments: @@ -274,14 +273,14 @@ class QueryNotifyPrint(QueryNotify): Return Value: Nothing. """ - numberOfResults = self.countResults() - 1 + NumberOfResults = self.countResults() - 1 title = "Results:" print(Style.BRIGHT + Fore.GREEN + "[" + Fore.YELLOW + "*" + Fore.GREEN + f"] {title}" + - Fore.WHITE + f" {numberOfResults}" ) + Fore.WHITE + f" {NumberOfResults}" ) title = "End"