From: Tollef Fog Heen Date: Thu, 13 Dec 2012 07:40:41 +0000 (+0100) Subject: dak/admin.py: use get_archive wrapper, simplifying the code slightly X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeb4705a67f08b8c51e2282c0cb67d3734c86403;p=dak dak/admin.py: use get_archive wrapper, simplifying the code slightly Signed-off-by: Tollef Fog Heen --- diff --git a/dak/admin.py b/dak/admin.py index 7400a1e7..63514ef4 100755 --- a/dak/admin.py +++ b/dak/admin.py @@ -442,7 +442,7 @@ def archive_add(args): def archive_rm(name): session = DBConn().session() - archive = session.query(Archive).filter_by(archive_name=name).one() + archive = get_archive(name, session) session.delete(archive) session.flush()