Skip to content

Commit

Permalink
Merge pull request #305 from noharm-ai/develop
Browse files Browse the repository at this point in the history
v2.32-beta
  • Loading branch information
marceloarocha authored Apr 7, 2024
2 parents 32c43bf + 9d2bd6f commit ad23dea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mobile.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@

@app.route("/version", methods=["GET"])
def getVersion():
return {"status": "success", "data": "v2.31-beta"}, status.HTTP_200_OK
return {"status": "success", "data": "v2.32-beta"}, status.HTTP_200_OK


if __name__ == "__main__":
Expand Down
3 changes: 2 additions & 1 deletion models/prescription.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,8 @@ def findRelation(
)

if r[0] in results:
results[r[0]].append(alert)
if alert not in results[r[0]]:
results[r[0]].append(alert)
else:
results[r[0]] = [alert]

Expand Down
7 changes: 4 additions & 3 deletions routes/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,11 +473,12 @@ def getFeatures(result):
"drugIDs": list(set(drugIDs)),
"substanceIDs": list(set(substanceIDs)),
"substanceClassIDs": list(set(substanceClassIDs)),
"alertStats": result["data"]["alertStats"]
if "alertStats" in result["data"]
else None,
"alertStats": (
result["data"]["alertStats"] if "alertStats" in result["data"] else None
),
"frequencies": list(set(frequencies)),
"processedDate": datetime.today().isoformat(),
"totalItens": len(drugList),
}


Expand Down

0 comments on commit ad23dea

Please sign in to comment.