Skip to content

Commit

Permalink
Do not use ID for fieldnames
Browse files Browse the repository at this point in the history
  • Loading branch information
funbaker committed Feb 8, 2017
1 parent 49e4335 commit 557bb75
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pyvo/dal/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,8 @@ def __init__(self, votable, url=None, protocol=None, version=None):
url=self._url)
self._fldnames = []
for field in self.fielddesc():
if field.ID:
self._fldnames.append(field.ID)
else:
self._fldnames.append(field.name)
self._fldnames.append(field.name)

if len(self._fldnames) == 0:
raise DALFormatError(reason="response table missing column " +
"descriptions.", url=self._url,
Expand Down

0 comments on commit 557bb75

Please sign in to comment.