filter() is breaking apart dot-containing '__' value part of kwarg into comma separated string?
まだ誰も着手していません。
評価
調査の方向性
まず 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 はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GothenburgBitFactory/tasklib のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
GothenburgBitFactory/tasklib#136 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
GothenburgBitFactory/tasklib#135 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
GothenburgBitFactory/tasklib#133 · コメント 1 件 · リアクション 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
GothenburgBitFactory/tasklib#132 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
GothenburgBitFactory/tasklib#131 · コメント 2 件 ·
GothenburgBitFactory/tasklib の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
stephrobert/dsoxlab#238 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
sublimehq/package_control#1780 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nwg-piotr/nwg-displays#145 ·