Skip to content

Commit 1f01695

Browse files
committed
consitent use of 'response = ' vs. 'self.response = '
Bother were in use, the former makese more sense to me, since the response is specific to the call, not the dataset
1 parent 6a7fb34 commit 1f01695

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ socrata.cfg
44
Socrata.pyc
55

66
.DS_Store
7+
8+
Socrata_Python.egg-info/*

Socrata.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def _batch(self, data):
7777

7878
class Dataset(SocrataBase):
7979
"""Represents a Socrata Dataset, can be used for CRUD and more"""
80-
80+
8181
# Creates a new column, POSTing the request immediately
8282
def add_column(self, name, description='', type='text',
8383
hidden=False, rich=False, width=100):
@@ -88,15 +88,15 @@ def add_column(self, name, description='', type='text',
8888
'width': width }
8989
if rich:
9090
data['format'] = {'formatting_option': 'Rich'}
91-
self.response = self._request("/views/%s/columns.json" % self.id,
91+
response = self._request("/views/%s/columns.json" % self.id,
9292
'POST', data)
93-
return self.response
93+
return response
9494

9595
# Adds a new row by specifying an array of cells
9696
def add_row(self, data):
9797
if not self.attached():
9898
return False
99-
self.response = self._request("/views/%s/rows.json" % self.id,
99+
response = self._request("/views/%s/rows.json" % self.id,
100100
'POST', data)
101101

102102
# For batch row importing, returns a dict to be POST'd

0 commit comments

Comments
 (0)