Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] tw_gtasks_sync syncing waiting tasks from other project #110

Open
kstreser opened this issue Mar 16, 2024 · 1 comment
Open

[BUG] tw_gtasks_sync syncing waiting tasks from other project #110

kstreser opened this issue Mar 16, 2024 · 1 comment
Labels

Comments

@kstreser
Copy link

Describe the bug

Tasks with status "waiting" getting synchronized from a Project, that has not been specified and the tasks don't match the given tag.

To Reproduce

task add project:A wait:2w Lorem ipsum dolor
tw_gtasks_sync -l B_inbox -f project:B -t in

Expected Behavior

Only tasks from project B with tag "in" get synchronized

Versions

OS Version (cat /etc/*-release; uname -a)

DISTRIB_ID="Arch"
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="Arch Linux"
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo
Linux archlinux 6.7.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 23 Feb 2024 16:31:48 +0000 x86_64 GNU/Linux

Python version (python --version; python3 --version)

Python 3.11.7
Python 3.11.7

--version of your executable

I'm getting this string from tw_gtasks_sync --version:
tw_gtasks_sync, version <module 'syncall.__version__' from '/home/<user>/.local/share/pipx/venvs/syncall/lib/python3.11/site-packages/syncall/__version__.py'>

Contents of this file:


# These version placeholders will be replaced later during substitution.
__version__ = "1.8.5"                                                   
__version_tuple__ = (1, 8, 5)     
@kstreser kstreser added the bug label Mar 16, 2024
@dickscheid
Copy link

dickscheid commented Apr 9, 2024

I have only seen this now. I just submitted a tiny PR which fixes this problem for me:
bergercookie/taskw-ng#1

for the quick fix, just locate site-packages/taskw_ng/warrior.py in your Python installation (for me on /opt/homebrew/lib/python3.11), and add the query_args argument in line 370:

    results["pending"].extend(self._get_task_objects("status:waiting", query_args, "export")) 

This did it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants