X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=db_access.py;h=cdc113f7996ee60e4cd68b762a12c1e8e0a3c281;hb=de3991e803cc6f69d5eee0fbf75daf95b0f9969d;hp=45ce1c1f3b377ac4a0a163831ea0409ff59686a8;hpb=7bf33bd6fc9101450df8c928b5d4410d78de11a9;p=dak.git diff --git a/db_access.py b/db_access.py index 45ce1c1f..cdc113f7 100644 --- a/db_access.py +++ b/db_access.py @@ -2,7 +2,7 @@ # DB access fucntions # Copyright (C) 2000, 2001, 2002, 2003, 2004 James Troup -# $Id: db_access.py,v 1.17 2005-12-05 03:45:12 ajt Exp $ +# $Id: db_access.py,v 1.18 2005-12-05 05:08:10 ajt Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -304,6 +304,7 @@ def get_files_id (filename, size, md5sum, location_id): def get_or_set_queue_id (queue): global queue_id_cache + if queue_id_cache.has_key(queue): return queue_id_cache[queue]