예제 #1
0
 def update_coins(self, device, Client_login, save=False):
     print "in update coins in models"
     manager = CoinTicketManager(device, Client_login, ticket=self)
     manager.update()
     if save:
         self.save()
     
     return 10
예제 #2
0
 def update_coins(self, device, Client_login, save=False):
     manager = CoinTicketManager(device, Client_login, ticket=self)
     manager.update1()
     
     if save:
         self.save()
     
     return 0