From 1e54b06fa82db3e44714d31f3f2b1306015a2e4a Mon Sep 17 00:00:00 2001 From: lxnay Date: Sun, 2 Nov 2008 22:05:04 +0000 Subject: [PATCH] Entropy/DistributionUGCInterface: - do_download(): spawn store_download_data properly git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2629 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index 06e91e8f6..9682ee47e 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -17810,7 +17810,6 @@ class DistributionUGCInterface(RemoteDbSkelInterface): return iddownload def store_download_data(self, iddownload, ip_addr, do_commit = False): - # self.DOWNLOADS_STORE_LOCATION self.execute_query('INSERT INTO entropy_downloads_data VALUES (%s,%s,%s)', (iddownload,ip_addr,self.DOWNLOADS_STORE_LOCATION)) if do_commit: self.commit() @@ -18311,8 +18310,8 @@ class DistributionUGCInterface(RemoteDbSkelInterface): else: self.update_download(iddownload, pkgkey, mydate, 1) if do_commit: self.commit() - if (int(iddownload) > 0) and isinstance(ip_addr,basestring): - self.store_download_data(self, int(iddownload), unicode(ip_addr)) + if (iddownload > 0) and isinstance(ip_addr,basestring): + self.store_download_data(self, iddownload, unicode(ip_addr)) return True def insert_document(self, pkgkey, userid, username, text, title, description, keywords, doc_type = None, do_commit = False):