Skip to content

Add manual naming and explicit overriding of content detection datasets - #683

Open
ZenonSeth wants to merge 1 commit into
luanti-org:content-detectionfrom
ZenonSeth:manual-naming-and-overriding-of-datasets
Open

ZenonSeth wants to merge 1 commit into
luanti-org:content-detectionfrom
ZenonSeth:manual-naming-and-overriding-of-datasets

Conversation

@ZenonSeth

Copy link
Copy Markdown
Contributor
  • Add dropdown to select existing datasets
  • Dropdown has a Create new option
  • Add field for naming new datasets when creating new

Screenshot:

26-09-08-00-35-27-Content_Detection_Datasets_-_ContentDB_-_Vivaldi



class UploadDatasetForm(FlaskForm):
name_select = SelectField(lazy_gettext("Dataset"))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a QuerySelectField can load from the database more cleanly, there's the option to add a null which could be used for "Create New"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated PR, still looks the same, but internally uses QuerySelectField

@ZenonSeth
ZenonSeth force-pushed the manual-naming-and-overriding-of-datasets branch from f53a060 to 1a96ac4 Compare September 8, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants