X Tutup
Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Added access to the filter stream API.#136

Merged
bear merged 1 commit intobear:masterfrom
stefano-maggiolo:master
Jan 18, 2014
Merged

Added access to the filter stream API.#136
bear merged 1 commit intobear:masterfrom
stefano-maggiolo:master

Conversation

@stefano-maggiolo
Copy link
Copy Markdown
Contributor

No description provided.

bear added a commit that referenced this pull request Jan 18, 2014
Added access to the filter stream API.
@bear bear merged commit 34c51c2 into bear:master Jan 18, 2014
@bear
Copy link
Copy Markdown
Owner

bear commented Jan 18, 2014

would you mind posting to the google-group about this new method? others may find it interesting but not see it immediately.

@jcapde
Copy link
Copy Markdown

jcapde commented Jan 26, 2014

Hi,
Parameters in the Stream Filter function have to be passed in a list, isn't it? Otherwise, the join funcion separates the string values digit by digit.
api.GetStreamFilter(locations="2.1,41.1,2.3,41.5"
{'locations': '2,.,1,,,4,1,.,1,,,2,.,3,,,4,1,.,5'}

The following, works:
api.GetStreamFilter(locations=["2.1,41.1,2.3,41.5"])
{'locations': '2.1,41.1,2.3,41.5'}

@bear
Copy link
Copy Markdown
Owner

bear commented Jan 26, 2014

good catch!

could you file a bug/issue for that explaining that we should be smart
about using ','.join() only if the parameter is a list?

On Sun, Jan 26, 2014 at 5:42 PM, jcapde87 notifications@github.com wrote:

Hi,
Parameters in the Stream Filter function have to be passed in a list,
isn't it? Otherwise, the join funcion separates the string values digit by
digit.
api.GetStreamFilter(locations="2.1,41.1,2.3,41.5"
{'locations': '2,.,1,,,4,1,.,1,,,2,.,3,,,4,1,.,5'}

The following, works:
api.GetStreamFilter(locations=["2.1,41.1,2.3,41.5"])
{'locations': '2.1,41.1,2.3,41.5'}


Reply to this email directly or view it on GitHubhttps://github.com//pull/136#issuecomment-33333122
.

Bear

bear@xmpp.org (email)
bear42@gmail.com (xmpp, email)
bear@code-bear.com (xmpp, email)
http://code-bear.com/bearlog (weblog)

PGP Fingerprint = 9996 719F 973D B11B E111 D770 9331 E822 40B3 CD29

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup