Merge pull request #461 from expsa/fix_api_web

fix bug
This commit is contained in:
AbuzarExp 2024-08-01 11:22:27 +03:00 committed by GitHub
commit f6b4999090
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -349,8 +349,9 @@ class AttendanceController(http.Controller):
}
li.append(attendance)
return http_helper.response(message="Data Found", data={'total_months':total_months, 'attendaces': li})
return http_helper.response(message="Data Found", data={'total_months':total_months, 'attendaces': li})
else:
return http_helper.response(message="Data not Found", data={'attendaces': li})
except (UserError, AccessError, ValidationError, Exception, Warning) as e:
http.request._cr.rollback()
error = str(e)