Remove iwla parameter in hook functions
This commit is contained in:
		| @@ -20,11 +20,11 @@ class IWLAPreAnalysisPageToHit(IPlugin): | ||||
|  | ||||
|         return True | ||||
|  | ||||
|     def hook(self, iwla): | ||||
|     def hook(self): | ||||
|         start_time = self.iwla.getStartAnalysisTime() | ||||
|         start_time = time.mktime(start_time) | ||||
|  | ||||
|         hits = iwla.getCurrentVisists() | ||||
|         hits = self.iwla.getCurrentVisists() | ||||
|         viewed_http_codes = self.iwla.getConfValue('viewed_http_codes', [200, 304]) | ||||
|         for (k, super_hit) in hits.items(): | ||||
|             if super_hit['robot']: continue | ||||
|   | ||||
| @@ -16,8 +16,8 @@ class IWLAPreAnalysisRobots(IPlugin): | ||||
|         return True | ||||
|  | ||||
| # Basic rule to detect robots | ||||
|     def hook(self, iwla): | ||||
|         hits = iwla.getCurrentVisists() | ||||
|     def hook(self): | ||||
|         hits = self.iwla.getCurrentVisists() | ||||
|         for k in hits.keys(): | ||||
|             super_hit = hits[k] | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user