Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Raw filters don't seem to be working as intended

Aperta
#113 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
api

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GothenburgBitFactory/tasklib

Tutte le issue di GothenburgBitFactory/tasklib

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.