Skip to content

Commit ca3fb8c

Browse files
committed
-out.all keyword should have no value
1 parent 11286a0 commit ca3fb8c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

astroquery/vizier/core.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ def _args_to_payload(self, *args, **kwargs):
552552
for x in alls:
553553
if x in columns:
554554
columns.remove(x)
555-
body['-out.all'] = 2
555+
body['-out.all'] = None
556556
# keyword name that means default columns
557557
if '*' in columns:
558558
columns.remove('*')
@@ -617,7 +617,10 @@ def _args_to_payload(self, *args, **kwargs):
617617
# add all items that are not lists
618618
for key, val in body.items():
619619
if type(val) is not list:
620-
script += ["{key}={val}".format(key=key, val=val)]
620+
if val:
621+
script += ["{key}={val}".format(key=key, val=val)]
622+
else:
623+
script += [key]
621624
# add list at the end
622625
for key, val in body.items():
623626
if type(val) is list:

0 commit comments

Comments
 (0)