Skip to content

Commit ed5fd02

Browse files
committed
fixed rust map_or, and bumped pypi version
1 parent 241838d commit ed5fd02

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

api/src/routes/search.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub async fn search(
5151
let pattern = format!("%{}%", query.q);
5252
let cat = query.category.as_deref();
5353

54-
let should = |name: &str| cat.map_or(true, |c| c == name);
54+
let should = |name: &str| cat.is_none_or(|c| c == name);
5555

5656
// Projects: name, description, tags::text, stage
5757
let projects = if should("projects") {

sdk/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "openmodelstudio"
7-
version = "0.0.1"
7+
version = "0.0.2"
88
description = "OpenModelStudio SDK — register models, log metrics, and manage artifacts from JupyterLab workspaces"
99
readme = "README.md"
1010
requires-python = ">=3.9"

0 commit comments

Comments
 (0)