Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

filter() is breaking apart dot-containing '__' value part of kwarg into comma separated string?

オープン
#116 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
cli

調査の方向性

まず tw.tasks.pending().filter(tags__contains='testing') の例を再現し、filter() の引数処理と、レポートに示されている生成されたタスクコマンドを調べます。値が t,e,s,t,i,n,g ではなく testing として渡され、フィルターが期待されるタスクに一致すれば、修正は完了です。

索引モデルが issue の本文から書いたものです。

説明

hello, trying the examples from README, using taskwarrior 2.6.2 and current develop branch of tasklib:

>>> from tasklib import TaskWarrior
>>> tw = TaskWarrior()
>>> tw.tasks.pending().filter(tags__contains='testing')
[]

the strange thing is, look at the [slightly reformatted] trace:

$ sudo strace -s 999 -f -p 1752607 -e trace=execve -e status=successful
...
[pid 1753587] execve("/usr/local/bin/task", [
"task",
"rc.confirmation=no",
"rc.dependency.confirmation=no",
"rc.recurrence.confirmation=no",
"rc.json.array=off",
"rc.bulk=0",
"status:'pending'",
"tags.contains:'t,e,s,t,i,n,g'", "export"
],
0x55ba0559c100 /* 83 vars */) = 0
[pid 1753587] +++ exited with 0 +++

why is it breaking it apart into t,e,s,t,i,n,g? I have a feeling I'm doing something wrong, but can't figure out what :-) Also note that simple filters work, like

tw.tasks.pending().filter(description='the')

this translates to description:'the' which correctly matches tasks whose description starts with "the"

主要言語
Python
スター
158
フォーク
29
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GothenburgBitFactory/tasklib のほかの issue

GothenburgBitFactory/tasklib の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。