Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team members join date json serialization and renamed joined date to … #6740

Merged
merged 1 commit into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/api/teams/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,14 +428,14 @@ def get(self):
csv_output = io.StringIO()
writer = csv.writer(csv_output)
writer.writerow(
["Username", "Date Joined (UTC)", "Team Name"]
["Username", "Application Date (UTC)", "Team Name"]
) # CSV header

for member in team_members:
writer.writerow(
[
member.username,
member.joined_date.strftime("%Y-%m-%d %H:%M:%S")
member.joined_date.strftime("%Y-%m-%dT%H:%M:%S")
if member.joined_date
else "N/A",
member.team_name,
Expand Down
4 changes: 3 additions & 1 deletion backend/models/postgis/team.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ def _get_team_members(self):
"pictureUrl": mem.member.picture_url,
"function": TeamMemberFunctions(mem.function).name,
"active": mem.active,
"joinedDate": mem.joined_date,
"joinedDate": mem.joined_date.isoformat()
if mem.joined_date
else None,
}
)

Expand Down