fix(todoman): disable hostname suffix

To fix compat with roundcube tasks
This commit is contained in:
Gabriel Fontes
2025-12-17 21:03:40 -03:00
parent 038313d37a
commit 6838e2b59e
2 changed files with 31 additions and 1 deletions
+5 -1
View File
@@ -78,7 +78,11 @@ in {
vdirsyncer = addPatches prev.vdirsyncer [./vdirsyncer-fixed-oauth-token.patch];
# https://github.com/pimutils/todoman/pull/594
todoman = addPatches prev.todoman [./todoman-latest-main.patch ./todoman-subtasks.patch];
todoman = addPatches prev.todoman [
./todoman-latest-main.patch
./todoman-subtasks.patch
./todoman-disable-uid-hostname-suffix.diff
];
# https://github.com/ValveSoftware/gamescope/issues/1622
gamescope = prev.gamescope.overrideAttrs (_: {
@@ -0,0 +1,26 @@
diff --git a/tests/test_model.py b/tests/test_model.py
index cdb5d0b..fd43c7e 100644
--- a/tests/test_model.py
+++ b/tests/test_model.py
@@ -398,7 +398,7 @@ def test_clone() -> None:
assert todo.location == clone.location
assert todo.due == clone.due
assert todo.uid != clone.uid
- assert len(clone.uid) > 32
+ assert len(clone.uid) == 32
assert clone.id is None
assert todo.filename != clone.filename
assert clone.uid in clone.filename
diff --git a/todoman/model.py b/todoman/model.py
index 206e136..a17834f 100644
--- a/todoman/model.py
+++ b/todoman/model.py
@@ -72,7 +72,7 @@ class Todo:
"""
self.list = list
now = datetime.now(LOCAL_TIMEZONE)
- self.uid = f"{uuid4().hex}@{socket.gethostname()}"
+ self.uid = f"{uuid4().hex}"
if new:
self.created_at = now