Semantics3 / semantics3-python

Python library bindings for the Semantics3 APIs
22 stars 10 forks source link

Cannot add isotime to offers query #18

Closed kidambisrinivas closed 8 years ago

kidambisrinivas commented 8 years ago

This works fine:

In [15]: sem3.offers_field("sem3_id", '6HaXu0PKASKgqIqi0a8SSU') In [16]: prices = sem3.get_offers()

This doesn't:

In [12]: sem3.offers_field("sem3_id", '6HaXu0PKASKgqIqi0a8SSU', "isotime", 1) In [13]: prices = sem3.get_offers()

shawntan commented 8 years ago

If this works the way I remember it should, doing a query like

sem3.offers_field("sem3_id", '6HaXu0PKASKgqIqi0a8SSU', "isotime", 1)

should create a nested hash that looks like,

{ 'sem3_id': { '6HaXu0PKASKgqIqi0a8SSU': { "isotime": 1 }}}

Is that the desired behaviour?

kidambisrinivas commented 8 years ago

Nope, so doing it twice should do it?

sem3.offers_field("sem3_id", '6HaXu0PKASKgqIqi0a8SSU') sem3.offers_field("isotime", 1)

Thanks for the quick response! :)

shawntan commented 8 years ago

Yup. Did you try that?

kidambisrinivas commented 8 years ago

Yup, that worked for the customer. Thanks