Gentoo Archives: gentoo-commits

From: Magnus Granberg <zorry@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/zorry:master commit in: gobs/pym/
Date: Sat, 01 Dec 2012 23:28:44
Message-Id: 1354404500.c07903f5ebe77b11486d87ebb04250818462a4c6.zorry@gentoo
1 commit: c07903f5ebe77b11486d87ebb04250818462a4c6
2 Author: Magnus Granberg <zorry <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 1 23:28:20 2012 +0000
4 Commit: Magnus Granberg <zorry <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 1 23:28:20 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/zorry.git;a=commit;h=c07903f5
7
8 fix can't adapt type 'ParseError
9
10 ---
11 gobs/pym/pgsql_querys.py | 4 ++--
12 1 files changed, 2 insertions(+), 2 deletions(-)
13
14 diff --git a/gobs/pym/pgsql_querys.py b/gobs/pym/pgsql_querys.py
15 index c4ae37c..8bc17bd 100644
16 --- a/gobs/pym/pgsql_querys.py
17 +++ b/gobs/pym/pgsql_querys.py
18 @@ -45,10 +45,10 @@ def get_config_list_all(connection):
19 def update_make_conf(connection, configsDict):
20 cursor = connection.cursor()
21 sqlQ1 = 'UPDATE configs_metadata SET checksum = %s, make_conf_text = %s, active = %s, config_error = %s WHERE config_id = (SELECT config_id FROM configs WHERE config = %s)'
22 + params = [v['make_conf_checksum_tree'], v['make_conf_text'], v['active'], v['config_error'], k]
23 for k, v in configsDict.iteritems():
24 - params = [v['make_conf_checksum_tree'], v['make_conf_text'], v['active'], v['config_error'], k]
25 cursor.execute(sqlQ1, params)
26 - connection.commit()
27 + connection.commit()
28
29 def get_default_config(connection):
30 cursor = connection.cursor()