Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Get all unlocked achievements per player and store in graph #10

Open
ipecxx opened this issue Apr 12, 2018 · 2 comments
Open

Get all unlocked achievements per player and store in graph #10

ipecxx opened this issue Apr 12, 2018 · 2 comments
Assignees

Comments

@ipecxx
Copy link
Contributor

ipecxx commented Apr 12, 2018

No description provided.

@oxisto
Copy link
Member

oxisto commented Apr 12, 2018

To select an existing achievement by its id (the apiname)

Achievement.select(graph, id).first()

@oxisto
Copy link
Member

oxisto commented Apr 13, 2018

Code snippet for neomodel, in case we decided to switch

# first, select the game
game = Game.nodes.get(steam_app_id=232090)

# possible to return a list of specific achievements
a_list = game.achievements.filter(
        api_name__in=["Achievement_26", "Achievement_27"])

# or just a particular one
a_list = game.achievements.get("Achievement_26")

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants