Hi,
the first line provides a dictionary of actors (names). The values are a
list of movies.
In a loop over a movie and there over each actor I want to know in how many
movies
an actor plays a role. I'm not able to access the dictionary ...
... I tried actors[actor] as well as actors.get(actor) but
{% set actors =
page.statistic.getActorsAsDictionary() %}
....
{{ actors.get(actor)|length }} => yells about
NoneType
{{ actors[actor]|length }} => always 0
I tried it this way:
{% set actors = {"Dennis Quaid": [1]} %}
{{ actors[actor]|length }} => always 0
It DOES work for:
{% set actors = {"Dennis Quaid": [1234]} %}
{{ actors["Dennis Quaid"]|length }} => is "1"
What did I wrong?
Regards,
Thomas
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/5106af32-0b2f-494f-bab0-b6927abd04d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.