projects
/
hermes
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for creating contacts from "interesting" friends on LinkedIn. Completes...
[hermes]
/
package
/
src
/
org
/
maemo
/
hermes
/
engine
/
hermes.py
diff --git
a/package/src/org/maemo/hermes/engine/hermes.py
b/package/src/org/maemo/hermes/engine/hermes.py
index
9d569d8
..
ab2d445
100644
(file)
--- a/
package/src/org/maemo/hermes/engine/hermes.py
+++ b/
package/src/org/maemo/hermes/engine/hermes.py
@@
-86,10
+86,11
@@
class Hermes:
tick_increment = len(contacts) / (len(to_create) or 1)
print tick_increment, to_create
for friend in to_create:
tick_increment = len(contacts) / (len(to_create) or 1)
print tick_increment, to_create
for friend in to_create:
- friend.set_source(service.get_id())
self._progress("Creating contacts...", current_tick, total_ticks)
current_tick += tick_increment
self._progress("Creating contacts...", current_tick, total_ticks)
current_tick += tick_increment
- self.create_contact_from_friend(friend)
+ if friend.is_interesting():
+ friend.set_source(service.get_id())
+ self.create_contact_from_friend(friend)
# finalisation
for service in self._services:
# finalisation
for service in self._services: