Skip to content

Commit

Permalink
squashme: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
olevski committed Dec 11, 2024
1 parent 0883537 commit 448baca
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,14 @@ def get_labels(self) -> dict[str, str | None]:
def get_annotations(self) -> dict[str, str | None]:
"""Get the annotations for the session."""
prefix = self._get_renku_annotation_prefix()
username = self._user.id
if isinstance(self.user, AuthenticatedAPIUser) and self._user.email:
username = self._user.email
annotations = {
f"{prefix}commit-sha": None,
f"{prefix}gitlabProjectId": None,
f"{prefix}safe-username": self._user.id,
f"{prefix}username": self._user.id,
f"{prefix}username": username,
f"{prefix}userId": self._user.id,
f"{prefix}servername": self.server_name,
f"{prefix}branch": None,
Expand Down

0 comments on commit 448baca

Please sign in to comment.