From 720fd5ba1a2f811e208a603e6f25d4f8cba9391d Mon Sep 17 00:00:00 2001 From: Ahmed Boussadia Date: Wed, 7 May 2014 16:27:25 +0200 Subject: [PATCH] Improving okc profile alker optimizer --- modules/okc/optim/profiles_walker.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/okc/optim/profiles_walker.py b/modules/okc/optim/profiles_walker.py index 88acfb79..6b93c0cf 100644 --- a/modules/okc/optim/profiles_walker.py +++ b/modules/okc/optim/profiles_walker.py @@ -78,11 +78,11 @@ class ProfilesWalker(Optimization): id = self.profiles_queue.pop() except KeyError: return # empty queue - try: with self.browser: - profile = self.browser.get_profile(id) - self.logger.info(u'Visited profile %s (%s)' % (profile['pseudo'], id)) + # profile = self.browser.get_profile(id) + self.browser.visit_profile(id) + self.logger.info(u'Visited profile %s ' % (id)) # Get score from the aum_score module #d = self.nucentral_core.callService(context.Context.fromComponent(self), 'aum_score', 'score', profile) @@ -98,6 +98,7 @@ class ProfilesWalker(Optimization): self.profiles_queue.add(id) return except Exception as e: + print e finally: if self.view_cron is not None: