Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

TypeError: 'CommandCursor' object is unsubscriptabl #5

@ibobak

Description

@ibobak

launched the command
python recipe.py "Tesla Model S" 100
and received this error. MongoDB database is filled in fine - I see 98 tweets, everything is fine.

Traceback (most recent call last):
File "recipe.py", line 340, in
main(sys.argv[1], int(sys.argv[2]))
File "recipe.py", line 43, in main
print_results()
File "recipe.py", line 303, in print_results
avg_pos_score = mean_results['result'][2]['avgScore']
TypeError: 'CommandCursor' object is unsubscriptable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions