changeset 23:b75a9ae3a060

Poprawiony błąd przy edycji zadań przez POST
author Michał Rudowicz <michal.rudowicz@fl9.eu>
date Mon, 11 Apr 2011 10:22:56 +0200
parents 9a45dfaec157
children 3a2876457625
files frontend/mfrontend/db.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/frontend/mfrontend/db.py	Mon Apr 11 09:50:23 2011 +0200
+++ b/frontend/mfrontend/db.py	Mon Apr 11 10:22:56 2011 +0200
@@ -168,7 +168,7 @@
     for key in keys:
        if key in options:
            query_db("UPDATE jobs SET " + key + " = :value WHERE id = :id",
-                    {"value":options["state"],"id":job_id})
+                    {"value":options[key],"id":job_id})
     g.db.commit()
 
 def get_user_name(user_id):