1 |
commit: 45873dc970c08863ae8b8ce8a32bda4f7ae10cbf |
2 |
Author: Magnus Granberg <zorry <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 1 23:32:48 2012 +0000 |
4 |
Commit: Magnus Granberg <zorry <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 1 23:32:48 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/zorry.git;a=commit;h=45873dc9 |
7 |
|
8 |
clean up update_make_conf |
9 |
|
10 |
--- |
11 |
gobs/pym/pgsql_querys.py | 5 ++--- |
12 |
1 files changed, 2 insertions(+), 3 deletions(-) |
13 |
|
14 |
diff --git a/gobs/pym/pgsql_querys.py b/gobs/pym/pgsql_querys.py |
15 |
index 8bc17bd..5eafd19 100644 |
16 |
--- a/gobs/pym/pgsql_querys.py |
17 |
+++ b/gobs/pym/pgsql_querys.py |
18 |
@@ -44,10 +44,9 @@ def get_config_list_all(connection): |
19 |
|
20 |
def update_make_conf(connection, configsDict): |
21 |
cursor = connection.cursor() |
22 |
- 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)' |
23 |
- params = [v['make_conf_checksum_tree'], v['make_conf_text'], v['active'], v['config_error'], k] |
24 |
+ sqlQ = '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)' |
25 |
for k, v in configsDict.iteritems(): |
26 |
- cursor.execute(sqlQ1, params) |
27 |
+ cursor.execute(sqlQ, ([v['make_conf_checksum_tree'], v['make_conf_text'], v['active'], v['config_error'], k],)) |
28 |
connection.commit() |
29 |
|
30 |
def get_default_config(connection): |