Skip to content

Commit

Permalink
fix spacing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sail338 committed Jul 3, 2018
1 parent 5bab776 commit e863717
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions garfield/lookup/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,16 @@ def index(request):
"""
Endpoint to lookup contact information via Twilio
"""
print(request)
response = MessagingResponse()
parsed_data = lookup_contact(request))
if(parsed_data == {}):
response.message("Contact is not in the System")
else:
response.message("Number of Texts: "+ parsed_data['num_texts'])
response.message("Number of Calls: "+parsed_data['num_calls'])
response.message("Contact Count: "+ parsed_data['suspect_contact_count'])
response.message("Carrier: " + parsed_data['suspect_carrier'])
return response
response = MessagingResponse()
parsed_data = lookup_contact(request)
if(parsed_data == {}):
response.message("Contact is not in the System")
else:
response.message("Number of Texts: "+ parsed_data['num_texts'])
response.message("Number of Calls: "+parsed_data['num_calls'])
response.message("Contact Count: "+ parsed_data['suspect_contact_count'])
response.message("Carrier: " + parsed_data['suspect_carrier'])
return response

def lookup_contact(request):
"""
Expand Down

0 comments on commit e863717

Please sign in to comment.