Пример #1
0
	def decrement_likes_counter(self):
		shard_name = self._counter_of_likes_id
		Shard.task(shard_name, "decrement")
		
Пример #2
0
	def increment_stations_counter(self):
		shard_name = self._counter_of_stations_id
		Shard.task(shard_name, "increment")
		
Пример #3
0
	def increment_visits_counter(self):
		shard_name = self._counter_of_visits_id
		Shard.task(shard_name, "increment")
Пример #4
0
	def decrement_likes_counter(track_id):
		shard_name = COUNTER_OF_LIKES_PREFIX + str(track_id)
		Shard.task(shard_name, "decrement")