04204114ace57fc1cca268c55b3ffa5ddd363ce6,external_api/api.py,,update_dictionary,#Any#,27
Before Change
dictionary_data = word_entity_info.get("dictionary_data")
language_script = word_entity_info.get("language_script")
datastore_obj = DataStore()
status = datastore_obj.external_api_update_entity(dictionary_name=dictionary_name,
dictionary_data=dictionary_data,
language_script=language_script)
return HttpResponse(json.dumps({"status": status}), content_type="application/json")
def transfer_entities(request):
After Change
language_script=language_script)
except ValueError:
return HttpResponse(status=500)
return HttpResponse(status=200)
def transfer_entities(request):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: hellohaptik/chatbot_ner
Commit Name: 04204114ace57fc1cca268c55b3ffa5ddd363ce6
Time: 2018-08-19
Author: pratik.jayarao@haptik.co
File Name: external_api/api.py
Class Name:
Method Name: update_dictionary
Project Name: hellohaptik/chatbot_ner
Commit Name: 04204114ace57fc1cca268c55b3ffa5ddd363ce6
Time: 2018-08-19
Author: pratik.jayarao@haptik.co
File Name: external_api/api.py
Class Name:
Method Name: transfer_entities
Project Name: hellohaptik/chatbot_ner
Commit Name: f11e942dbe2069e1ac09c8d8d981179d24326c70
Time: 2018-08-19
Author: pratik.jayarao@haptik.co
File Name: external_api/api.py
Class Name:
Method Name: transfer_entities