Skip to content

Commit

Permalink
feat: DIA-1579: Seeded Sample Project and Prompts for Trials (#6599)
Browse files Browse the repository at this point in the history
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Co-authored-by: nik <[email protected]>
Co-authored-by: niklub <[email protected]>
  • Loading branch information
4 people authored Nov 8, 2024
1 parent c54fd69 commit d14d01e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions label_studio/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ def get_short_name(self):
"""Return the short name for the user."""
return self.first_name

def get_token(self) -> Token:
return Token.objects.filter(user=self).first()

def reset_token(self) -> Token:
Token.objects.filter(user=self).delete()
return Token.objects.create(user=self)
Expand Down
10 changes: 5 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ openai = "^1.10.0"
django-migration-linter = "^5.1.0"

# Humansignal repo dependencies
label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/91637159ca49586098d5b5f60fa451cfe980dc0d.zip"}
label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/ae9984e544732025caadf96d2d716c728dbbe014.zip"}

[tool.poetry.group.test.dependencies]
pytest = "7.2.2"
Expand Down

0 comments on commit d14d01e

Please sign in to comment.