Skip to content

Commit 73288ee

Browse files
committed
Fixing export query strings
1 parent 5169ecd commit 73288ee

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

bigml/api_handlers/resourcehandler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
# Resource types that are composed by other resources
4646
COMPOSED_RESOURCES = ["ensemble", "fusion"]
4747

48-
LIST_LAST = "limit=1;full=yes;tags=%s"
48+
LIST_LAST = "limit=1&full=yes&tags=%s"
4949

5050
PMML_QS = "pmml=yes"
5151

@@ -948,7 +948,7 @@ def export(self, resource, filename=None, pmml=False,
948948
"text and items fields cannot be "
949949
"exported to PMML.")
950950
if kwargs.get("query_string"):
951-
kwargs["query_string"] += ";%s" % PMML_QS
951+
kwargs["query_string"] += "&%s" % PMML_QS
952952
else:
953953
kwargs["query_string"] = PMML_QS
954954

@@ -1018,9 +1018,9 @@ def export_last(self, tags, filename=None,
10181018
if tags is not None and tags != '':
10191019
query_string = LIST_LAST % tags
10201020
if project is not None:
1021-
query_string += ";project=%s" % project
1021+
query_string += "&project=%s" % project
10221022

1023-
kwargs.update({'query_string': "%s;%s" % \
1023+
kwargs.update({'query_string': "%s&%s" % \
10241024
(query_string, kwargs.get('query_string', ''))})
10251025

10261026
response = self._list("%s%s" % (self.url, resource_type),

bigml/basemodel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
# remove them when we use only_model=true so we will set it to
4646
# false until the problem in apian is fixed
4747

48-
ONLY_MODEL = 'only_model=false;limit=-1;'
49-
EXCLUDE_FIELDS = 'exclude=fields;'
48+
ONLY_MODEL = 'only_model=false&limit=-1&'
49+
EXCLUDE_FIELDS = 'exclude=fields&'
5050

5151

5252
def retrieve_resource(api, resource_id, query_string=ONLY_MODEL,

0 commit comments

Comments
 (0)