~sircmpwn/todo.sr.ht

f89ad961ad748a484956ca81590fd80de55ed43f — Drew DeVault 2 months ago 49b48dd 0.65.2
Fix ticket mentions filter per SQLAlchemy changes
1 files changed, 2 insertions(+), 2 deletions(-)

M todosrht/tickets.py
M todosrht/tickets.py => todosrht/tickets.py +2 -2
@@ 103,7 103,7 @@ def find_mentioned_users(text):
def find_mentioned_tickets(tracker, text):
    if text is None:
        return set()
    filters = or_()
    filters = []
    matches = chain(
        re.finditer(TICKET_MENTION_PATTERN, text),
        re.finditer(TICKET_URL_PATTERN, text),


@@ 126,7 126,7 @@ def find_mentioned_tickets(tracker, text):

    return set(Ticket.query
        .join(Tracker, User)
        .filter(filters)
        .filter(or_(*filters))
        .all())

def _create_comment(ticket, participant, text):