Guest User

Untitled

a guest
Jan 22nd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. [%Statcasters.Prediction{
  2. __meta__: #Ecto.Schema.Metadata<:loaded, "predictions">,
  3. id: 6,
  4. inserted_at: ~N[2018-01-23 01:42:18.417113],
  5. points: 20,
  6. question: #Ecto.Association.NotLoaded<association :question is not loaded>,
  7. question_id: 110,
  8. team: #Ecto.Association.NotLoaded<association :team is not loaded>,
  9. team_id: 1,
  10. updated_at: ~N[2018-01-23 01:42:18.417122]
  11. },
  12. %Statcasters.Prediction{
  13. __meta__: #Ecto.Schema.Metadata<:loaded, "predictions">,
  14. id: 7,
  15. inserted_at: ~N[2018-01-23 01:57:20.144606],
  16. points: 20330,
  17. question: #Ecto.Association.NotLoaded<association :question is not loaded>,
  18. question_id: 110,
  19. team: #Ecto.Association.NotLoaded<association :team is not loaded>,
  20. team_id: 1,
  21. updated_at: ~N[2018-01-23 01:57:20.144614]
  22. }
  23. ]
  24.  
  25. Enum.map(team.predictions, fn(prediction) -> prediction.question_id end)
  26.  
  27. 'nn'
Add Comment
Please, Sign In to add comment