Improving okc profile alker optimizer
This commit is contained in:
parent
bf4300e9be
commit
720fd5ba1a
1 changed files with 4 additions and 3 deletions
|
|
@ -78,11 +78,11 @@ class ProfilesWalker(Optimization):
|
||||||
id = self.profiles_queue.pop()
|
id = self.profiles_queue.pop()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return # empty queue
|
return # empty queue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with self.browser:
|
with self.browser:
|
||||||
profile = self.browser.get_profile(id)
|
# profile = self.browser.get_profile(id)
|
||||||
self.logger.info(u'Visited profile %s (%s)' % (profile['pseudo'], id))
|
self.browser.visit_profile(id)
|
||||||
|
self.logger.info(u'Visited profile %s ' % (id))
|
||||||
|
|
||||||
# Get score from the aum_score module
|
# Get score from the aum_score module
|
||||||
#d = self.nucentral_core.callService(context.Context.fromComponent(self), 'aum_score', 'score', profile)
|
#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)
|
self.profiles_queue.add(id)
|
||||||
return
|
return
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
||||||
print e
|
print e
|
||||||
finally:
|
finally:
|
||||||
if self.view_cron is not None:
|
if self.view_cron is not None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue