hodooor / Hodoor

Server side for Hodoor - Casual attendance system
GNU General Public License v3.0
8 stars 6 forks source link

Division by Zero - views.py #52

Closed patriczek2811 closed 7 years ago

patriczek2811 commented 7 years ago

Internal Server Error: /user/patrik.predny/ Traceback (most recent call last): File "C:\Python34\lib\site-packages\django\core\handlers\base.py", line 149, in get_response response = self.process_exception_by_middleware(e, request) File "C:\Python34\lib\site-packages\django\core\handlers\base.py", line 147, in get_response response = wrapped_callback(request, *callback_args, *callback_kwargs) File "C:\Python34\lib\site-packages\django\contrib\auth\decorators.py", line 23, in _wrapped_view return view_func(request, args, kwargs) File "C:\Users\patri\Desktop\Hodoor-front-end-design\Hodoor\attendance\views.py", line 138, in user avg_work_hours_fullfill_quota = (hours_quota - unassigned_closed_session_hours - hours_work_this_month) / (num_of_workdays - num_of_elapsed_workdays)**

-- this bug can you see only on last day of month