Esempio n. 1
0
def like(sender, **kwargs):
    target = kwargs.get('target', '')
    cat = kwargs.get('cat', '')
    if sender and target and cat:
        uid = sender.get_profile().did
        if cat.startswith('book'):
            BookMining.likeBook(uid, target)
        return True
    else:
        return False
Esempio n. 2
0
 def test_likeBook(self):
     BookMining.likeBook('klb-3713', '6797396')
     pass