Пример #1
0
 def invalidateCredits(self):
     """
     Updates states of nodes for which changed their access to buy after
     updates value of credits.
     :return: [(<int:vehicle compact descriptor>, <new state>), ... ]
     """
     return self._invalidateMoney(filter(lambda item: NODE_STATE.isBuyForCredits(item['state']), self._getNodesToInvalidate()))
Пример #2
0
 def invalidateCredits(self):
     """
     Updates states of nodes for which changed their access to buy after
     updates value of credits.
     :return: [(<int:vehicle compact descriptor>, <new state>), ... ]
     """
     return self._invalidateMoney(
         filter(lambda item: NODE_STATE.isBuyForCredits(item['state']),
                self._getNodesToInvalidate()))
Пример #3
0
 def invalidateCredits(self):
     return self._invalidateMoney(
         filter(lambda item: NODE_STATE.isBuyForCredits(item['state']),
                self._getNodesToInvalidate()))
Пример #4
0
 def invalidateCredits(self):
     return self._invalidateMoney(filter(lambda item: NODE_STATE.isBuyForCredits(item['state']), self._getNodesToInvalidate()))
Пример #5
0
 def invalidateCredits(self):
     return self._invalidateMoney([
         item for item in self._getNodesToInvalidate()
         if NODE_STATE.isBuyForCredits(item.getState())
     ])