Skip to content

Commit

Permalink
[fix][s]: remove pdb
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-mahajan committed Feb 12, 2024
1 parent 736e486 commit a7f757d
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ def fetch_data_for_datapusher(self, context, data):
"resource_id": data.get("id"),
"force": True,
"records": data.get("preview_data"),
"fields": [{"id": key, "type": "text"} for key in data.get('preview_data')[0]]

"fields": [
{"id": key, "type": "text"} for key in data.get("preview_data")[0]
],
}
try:
delete = toolkit.get_action("datastore_delete")(
Expand All @@ -183,9 +184,6 @@ def fetch_data_for_datapusher(self, context, data):
except Exception as e:
log.error(e)
try:
import pdb

pdb.set_trace()
datastore_create = toolkit.get_action("datastore_create")(context, request)
resource_view_list = toolkit.get_action("resource_view_list")(
context, {"id": data.get("id")}
Expand Down

0 comments on commit a7f757d

Please sign in to comment.