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

_get_calendar_tasks() references undefined 'uid' variable #1176

Open
SqAtx opened this issue Jan 20, 2025 · 0 comments
Open

_get_calendar_tasks() references undefined 'uid' variable #1176

SqAtx opened this issue Jan 20, 2025 · 0 comments
Labels
plugins Plugins and extra backends reproducible-in-git Issues that affect the current dev version

Comments

@SqAtx
Copy link
Contributor

SqAtx commented Jan 20, 2025

    def _get_calendar_tasks(self, calendar: iCalendar):
        """Getting all tasks that has the calendar tag"""
        for task in self.datastore.tasks.data:
            if CATEGORIES.has_calendar_tag(task, calendar):
                yield uid, task

def _get_calendar_tasks(self, calendar: iCalendar):
"""Getting all tasks that has the calendar tag"""
for task in self.datastore.tasks.data:
if CATEGORIES.has_calendar_tag(task, calendar):
yield uid, task

Found it running Ruff.

I'm not sure how this translates into an actual bug, because I don't use that backend. I don't think it has been reported before.

The backend was added in 64d535a, and this was broken in 74bd3f4

@SqAtx SqAtx added plugins Plugins and extra backends reproducible-in-git Issues that affect the current dev version labels Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugins Plugins and extra backends reproducible-in-git Issues that affect the current dev version
Projects
None yet
Development

No branches or pull requests

1 participant