Skip to content

Commit 529065a

Browse files
committed
Revert "test"
This reverts commit 8eb63f2.
1 parent 8eb63f2 commit 529065a

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

ckanext/datapusher_plus/datastore_utils.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -159,28 +159,10 @@ def send_resource_to_datastore(
159159
"calculate_record_count": calculate_record_count,
160160
}
161161
try:
162-
163-
from pprint import pformat # DEBUG
164-
import logging # DEBUG
165-
log = logging.getLogger(__name__) # DEBUG
166-
if resource is None: # DEBUG
167-
resource = tk.get_action("resource_show")(context, {'id':resource_id}) # DEBUG
168-
package_id = resource['package_id'] # DEBUG
169-
result = tk.get_action("package_show")(context, {'id':package_id}) # DEBUG
170-
log.error('XXX BEFORE') # DEBUG
171-
log.error(pformat(result)) # DEBUG
172-
173-
174-
175-
162+
return # DEBUG
176163
resource_dict = tk.get_action("datastore_create")(
177164
{"ignore_auth": True}, request
178165
)
179-
180-
result = tk.get_action("package_show")(context, {'id':package_id}) # DEBUG
181-
log.error('XXX AFTER') # DEBUG
182-
log.error(pformat(result)) # DEBUG
183-
184166
return resource_dict
185167
except Exception as e:
186168
raise utils.JobError("Error sending data to datastore ({!s}).".format(e))

0 commit comments

Comments
 (0)