This commit is contained in:
odex 2024-08-01 11:12:51 +03:00
parent 0f4c47c417
commit aa83a200e4
1 changed files with 2 additions and 3 deletions

View File

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