Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxcutex committed Jan 24, 2021
1 parent 26b4437 commit 7f69791
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/controllers/user_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@ def list_all_users(self):
if users.items:
for user in users.items:
user_item = user.serialize()
user_item["employment_date"] = user.employment_date.strftime(
"%b %d, %Y"
)
if user.employment_date is not None:
user_item["employment_date"] = user.employment_date.strftime(
"%b %d, %Y"
)
user_list.append(user_item)
for user in user_list:
associated_roles = [
Expand Down

0 comments on commit 7f69791

Please sign in to comment.