diff --git a/progit/lib.py b/progit/lib.py index 65d8bb7..eb906f0 100644 --- a/progit/lib.py +++ b/progit/lib.py @@ -216,6 +216,7 @@ def add_issue_tag(session, issue, tag, user, ticketfolder): if not tagobj: tagobj = model.Tag(tag=tag) session.add(tagobj) + session.flush() issue_tag = model.TagIssue( issue_id=issue.id,