Skip to content

Commit f81d816

Browse files
committed
pipenv ignore
1 parent ff0cead commit f81d816

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.gitignore

+7-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ env
1212

1313
# cache
1414
__pycache__
15-
/*/.pyc
15+
/*/.pyc../.gitignore
16+
17+
# pipenv
18+
Pipfile
19+
Pipfile.lock
20+
client/Pipfile
21+
client/Pipfile.lock

app.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def process_df_api():
9999

100100
default_POST_response = "GOT a DF API POST request."
101101
json_request = request.get_json()
102+
print(json_request)
102103

103104
if json_request['queryResult']['action'] == 'input.unknown':
104105
database_do(action='unresponsed_query', query=json_request['queryResult']['queryText'])
@@ -128,10 +129,12 @@ def process_df_api():
128129

129130
print("Sending query {} with params {} and action {} to {}".format(url, query, parameters, action))
130131
requests.post(url=url, data=json.dumps(json_request), headers=headers)
131-
132+
print('Successfully handled request.')
133+
return return_text('success'), 200
134+
135+
print ('Default POST RESPONSE')
136+
return return_text(default_POST_response), 200
132137

133-
return default_POST_response, 200
134-
135138

136139
@app.route("/config", methods=["POST"])
137140
def process_config():

0 commit comments

Comments
 (0)