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

feat: DIA-1579: Seeded Sample Project and Prompts for Trials #6599

Merged
merged 8 commits into from
Nov 8, 2024
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
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 @@
"""Return the short name for the user."""
return self.first_name

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

Check warning on line 182 in label_studio/users/models.py

View check run for this annotation

Codecov / codecov/patch

label_studio/users/models.py#L182

Added line #L182 was not covered by tests

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
Loading