predicthq/sdk-py

Syntax error example code in 'Python SDK'

Closed this issue · 2 comments

To many close parentheses

from predicthq import Client

phq = Client(access_token="$ACCESS_TOKEN")

for event in phq.events.search(q="Foo Fighters", rank_level=[4, 5], country='US'):
    print(event.rank, event.category, event.title, event.start.strftime('%Y-%m-%d'))) # <---

Hiya,

Thanks for letting us know! We'll get it fixed.

Hi there,
I just deployed a fix for this.

Thanks