new optimization QUERIES_QUEUE to enqueue queries in case no charms are available
This commit is contained in:
parent
430ef6cb25
commit
b4fb1a43fa
4 changed files with 130 additions and 9 deletions
|
|
@ -240,13 +240,13 @@ class AuMBrowser(BaseBrowser):
|
|||
@pageaccess
|
||||
def send_charm(self, id):
|
||||
result = self.openurl('http://www.adopteunmec.com/fajax_addBasket.php?id=%s' % id).read()
|
||||
self.logger.warning('Charm: %s' % result)
|
||||
self.logger.debug('Charm: %s' % result)
|
||||
return result.find('noMoreFlashes') < 0
|
||||
|
||||
@pageaccess
|
||||
def add_basket(self, id):
|
||||
result = self.openurl('http://www.adopteunmec.com/fajax_addBasket.php?id=%s' % id).read()
|
||||
self.logger.warning('Basket: %s' % result)
|
||||
self.logger.debug('Basket: %s' % result)
|
||||
# TODO check if it works (but it should)
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue