File: datastore-fix-loading-color-for-saved-search.patch

package info (click to toggle)
gtg 0.6-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,464 kB
  • sloc: xml: 20,785; python: 17,651; sh: 158; makefile: 93
file content (25 lines) | stat: -rw-r--r-- 742 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Antonio Terceiro <terceiro@debian.org>
Date: Mon, 10 Jun 2024 19:37:03 -0300
Subject: datastore: fix loading color for saved search

This code is not present in the current upstream git, so there is no
point in forwarding this patch.

Forwarded: not-needed
---
 GTG/core/datastore.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/GTG/core/datastore.py b/GTG/core/datastore.py
index eb4a7d3..a735240 100644
--- a/GTG/core/datastore.py
+++ b/GTG/core/datastore.py
@@ -272,7 +272,7 @@ class DataStore():
             tag_attrs = {}
 
             if color:
-                tag_attrs['color'] = color
+                tag_attrs['color'] = '#' + color
 
             if icon:
                 tag_attrs['icon'] = icon