WIP: fixing the tests #875
Annotations
4 errors and 1 warning
patientsearch/api.py#L246
Local variable 'reactivate_patient' is assigned to but never used (F841)
|
patientsearch/api.py#L249
Missing whitespace around operator (E225)
|
patientsearch/api.py#L259
Missing whitespace around operator (E225)
|
/home/runner/work/cosri-patientsearch/cosri-patientsearch/patientsearch/api.py#L244
token = validate_auth()
active_patient_flag = current_app.config.get("ACTIVE_PATIENT_FLAG")
reactivate_patient = current_app.config.get("REACTIVATE_PATIENT")
try:
if not active_patient_flag:
- params=request.args
+ params = request.args
return jsonify(
HAPI_request(
token=token,
method="GET",
resource_type=resource_type,
params=params,
)
)
else:
- params=request.args
+ params = request.args
params["active"] = "true"
return jsonify(
HAPI_request(
token=token,
method="GET",
|
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-python@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|