Raw filters don't seem to be working as intended
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Inizia riproducendo gli esempi tramite TaskWarrior e l'entry point tasks.filter, usando le query pending e +habit mostrate. Confronta il raw filter combinato con i keyword filters separati e identifica perché la query con due condizioni non restituisce alcuna attività. Il lavoro è completato quando il raw filter combinato restituisce l'attività pending contrassegnata, mentre il comportamento esistente con una singola condizione rimane invariato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Let's say I have a task folder in ~/_sample_data.
The output of unset TASKRC; task rc.data.location=~/_sample_data is (removing the "configuration override" notes):
ID Age Tag Description Urg
2 5min habit another task 0.8
1 5min sample task 0
2 tasks
I then tried to use it this way:
from tasklib import TaskWarrior
import os
del os.environ["TASKRC"] # just to be sure it isn't my config's fault
tw = TaskWarrior(f"{os.environ['HOME']}/_sample_data")
print(tw.tasks.filter("status:pending")) # yields the two tasks
print(tw.tasks.filter("status:pending +habit")) # yields no task (was supposed to yield one)
print(tw.tasks.filter("+habit")) # yields one task, as expected
print(tw.tasks.filter(status="pending", tag="habit")) # yields one task ~ this one works fine as well
The shown output is then:
[sample task, another task]
[]
[another task]
[another task]
But what was expected:
[sample task, another task]
[another task]
[another task]
[another task]
It seems like only raw filters that have more than one condition are affected by this.
- Lingua principale
- Python
- Stelle
- 158
- Fork
- 29
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GothenburgBitFactory/tasklib
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
GothenburgBitFactory/tasklib#136 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
GothenburgBitFactory/tasklib#135 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
GothenburgBitFactory/tasklib#133 · 1 commento · 2 reazioni ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
GothenburgBitFactory/tasklib#132 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
GothenburgBitFactory/tasklib#131 · 2 commenti ·
Tutte le issue di GothenburgBitFactory/tasklib
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
stephrobert/dsoxlab#238 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
sublimehq/package_control#1780 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
nwg-piotr/nwg-displays#145 ·