[Feature / bugfix] Sorting uses update dates only from types (bases) currently selected.

#4

Added selectedTypes in: getPersonUploadDate , sortModels , searchModelsModern + isWithinPeriod call.

Oof, not sure what went wrong with the diff, I updated the code through hf. Maybe the newline scheme changed.
The update is implemented here: https://huggingface.co/spaces/Symbiomatrix/malcolm-browser
Simply sort by newest, then select flux / wan / zimage (+ within last week / month).
Before, this would display models whose zimage version was uploaded recently, but the flux / wan version is very old.
Now, it prioritises only models whose selected base was actually uploaded recently. Search works too.

Pardon the "type" instead of "base", chatbot wrote that, cba to correct.

Symbiomatrix changed pull request title from Sorting uses update dates only from types currently selected. to Sorting uses update dates only from types (bases) currently selected.
Symbiomatrix changed pull request title from Sorting uses update dates only from types (bases) currently selected. to [Feature / bugfix] Sorting uses update dates only from types (bases) currently selected.
Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment