Commit fa9e18ee authored by Gladys Forte's avatar Gladys Forte

Merge pull request #515 in RMS/api-main-service from gladys-dev2 to RMSv2

* commit '0e55ca5e':
  round on dash
parents f2f09bf3 0e55ca5e
......@@ -208,15 +208,15 @@ class ChangeRequestFormsViewset(viewsets.ModelViewSet):
close = rejected + cancelled + completed
opened = pending + approved
open_percent = (opened/status_total) * 100
close_percent = (close/status_total) * 100
open_percent = round((opened/status_total) * 100)
close_percent = round((close/status_total) * 100)
priority_total = high + normal
high_percent = (high/priority_total) * 100
normal_percent = (normal/priority_total) * 100
high_percent = round((high/priority_total) * 100)
normal_percent = round((normal/priority_total) * 100)
message = {
'account_no': id_number,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment