mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-24 02:14:13 -05:00
fix(todoman): disable hostname suffix
To fix compat with roundcube tasks
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user