The same_function_helper.py file contains multiple functions that are reused all over the API.
CodeClimate has found the following issue:
Similar blocks of code found in 2 locations. Consider refactoring.
def qhawaxQueryUpdateFilterByQhawaxName(json, qhawax_name):
if(qhawaxExistBasedOnName(qhawax_name)):
session.query(Qhawax).filter_by(name=qhawax_name).update(values=json)
session.commit()
def qhawaxQueryUpdateFilterByQhawaxId(json, qhawax_id):
if(qhawaxExistBasedOnID(qhawax_id)):
session.query(Qhawax).filter_by(id=qhawax_id).update(values=json)
session.commit()
The same_function_helper.py file contains multiple functions that are reused all over the API.
CodeClimate has found the following issue:
Similar blocks of code found in 2 locations. Consider refactoring.