From b03dd6f20aa3a8ae9c0347b3a34d8b581182ff68 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 17 Feb 2026 15:54:09 +0100 Subject: improve db import debug; fix inverted mtime check --- common/src/internal.rs | 12 ++++++++++++ common/src/lib.rs | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 common/src/internal.rs (limited to 'common') diff --git a/common/src/internal.rs b/common/src/internal.rs new file mode 100644 index 0000000..94876f1 --- /dev/null +++ b/common/src/internal.rs @@ -0,0 +1,12 @@ +/* + This file is part of jellything (https://codeberg.org/metamuffin/jellything) + which is licensed under the GNU Affero General Public License (version 3); see /COPYING. + Copyright (C) 2026 metamuffin +*/ + +use jellyobject::fields; + +fields! { + IM_PATH: &str = 0x11001 "path"; + IM_MTIME: u64 = 0x11002 "mtime"; +} diff --git a/common/src/lib.rs b/common/src/lib.rs index 4ae098d..4f8ffca 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -4,6 +4,7 @@ Copyright (C) 2025 metamuffin */ pub mod api; +pub mod internal; pub mod node; pub mod routes; pub mod user; @@ -25,6 +26,7 @@ pub static TAGREG: LazyLock = LazyLock::new(|| { user::register_fields(&mut reg); api::register_fields(&mut reg); api::register_enums(&mut reg); + internal::register_fields(&mut reg); reg }); -- cgit v1.3