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.
The following blocks of code may be replaced with a function that can be called multiple times.
lines 70..72
installation_id= session.query(QhawaxInstallationHistory.id).\
filter_by(qhawax_id=qhawax_id).\
filter(QhawaxInstallationHistory.end_date_zone == None). \
lines 77..79
return session.query(QhawaxInstallationHistory.id).\
filter_by(qhawax_id=qhawax_id). \
filter(QhawaxInstallationHistory.end_date_zone == None). \
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.
The following blocks of code may be replaced with a function that can be called multiple times.
lines 70..72
lines 77..79