Skip to content

Instantly share code, notes, and snippets.

@kristoff-it
Last active September 18, 2019 13:43
Show Gist options
  • Save kristoff-it/31ba2144b024299993d58ac9dfef65a7 to your computer and use it in GitHub Desktop.
Save kristoff-it/31ba2144b024299993d58ac9dfef65a7 to your computer and use it in GitHub Desktop.
async def add_new_win(pool, winner):
await pool.zincrby('wins_counter', 1, winner)
await pool.incr('total_games_played')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment