X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue.py;h=237fcc73725ebba5b383c4b1483547cd162dd143;hb=6ea8ab6e1b98041ce166dd3dc48b48b352dcf800;hp=dec339af60c310940bb09febd921c8f503b048cd;hpb=c6e41f91f40f5e90da44e83cce83dee990ec49a7;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index dec339af..237fcc73 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -332,7 +332,7 @@ def prod_maintainer(notes, upload): ################################################################################ -def edit_note(note, upload, session): +def edit_note(note, upload, session, trainee=False): # Write the current data to a temporary file (fd, temp_filename) = utils.temp_filename() editor = os.environ.get("EDITOR","vi") @@ -364,7 +364,7 @@ def edit_note(note, upload, session): comment.version = upload.pkg.changes["version"] comment.comment = newnote comment.author = utils.whoami() - comment.trainee = bool(Options["Trainee"]) + comment.trainee = trainee session.add(comment) session.commit()