diff options
author | Will Woods <wwoods@redhat.com> | 2009-09-23 16:51:53 -0400 |
---|---|---|
committer | Will Woods <wwoods@redhat.com> | 2009-09-23 16:51:53 -0400 |
commit | c992f30fcaf9e2184792e55d3cccc64cd31b0716 (patch) | |
tree | 6cb7103efb6dc4015612b76d8d210d098a253daf | |
parent | 53eb515be9aa786341c15d5e76084aac18ddb014 (diff) | |
download | israwhidebroken-c992f30fcaf9e2184792e55d3cccc64cd31b0716.tar.gz israwhidebroken-c992f30fcaf9e2184792e55d3cccc64cd31b0716.tar.xz israwhidebroken-c992f30fcaf9e2184792e55d3cccc64cd31b0716.zip |
make sure update_tree passes ints to IntCols
-rw-r--r-- | israwhidebroken/controllers.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/israwhidebroken/controllers.py b/israwhidebroken/controllers.py index 5f58a46..b93976e 100644 --- a/israwhidebroken/controllers.py +++ b/israwhidebroken/controllers.py @@ -75,14 +75,14 @@ class Root(controllers.RootController): if len(tr) == 0: return dict(exc='ValueError', tg_flash='Tree %u not found' % treeid) tree = tr[0] - if tree_time: - tree.tree_time = tree_time - if repodata_time: - tree.repodata_time = repodata_time if arch: tree.arch = arch + if tree_time: + tree.tree_time = to_int(tree_time) + if repodata_time: + tree.repodata_time = to_int(repodata_time) if compose_id: - tree.compose_id = compose_id + tree.compose_id = to_int(compose_id) hub.commit() return dict(tree=tree) @@ -90,7 +90,7 @@ class Root(controllers.RootController): @expose(allow_json=True) def add_result(self, treeid, testid, result, overwrite=False): if not overwrite: - # TODO return an error if there's already a result here + # TODO return an exception if there's already a result here pass tr = TestResult(tree=to_int(treeid), test=to_int(testid), |