Fixed: Star now showing in employee list
This commit is contained in:
@ -137,11 +137,11 @@ async def show_list(db: Session = Depends(get_db), user: UserToken = Depends(get
|
||||
"points": item.points,
|
||||
"isActive": item.is_active,
|
||||
"costCentre": item.cost_centre.name,
|
||||
# "url": request.route_url("employees_id", id=item.id),
|
||||
"joiningDate": item.joining_date.strftime("%d-%b-%Y"),
|
||||
"leavingDate": ""
|
||||
if item.is_active
|
||||
else item.leaving_date.strftime("%d-%b-%Y"),
|
||||
"isStarred": item.is_starred
|
||||
}
|
||||
for item in db.query(Employee)
|
||||
.order_by(desc(Employee.is_active))
|
||||
|
||||
Reference in New Issue
Block a user