summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2009-09-23 16:51:53 -0400
committerWill Woods <wwoods@redhat.com>2009-09-23 16:51:53 -0400
commitc992f30fcaf9e2184792e55d3cccc64cd31b0716 (patch)
tree6cb7103efb6dc4015612b76d8d210d098a253daf
parent53eb515be9aa786341c15d5e76084aac18ddb014 (diff)
downloadisrawhidebroken-c992f30fcaf9e2184792e55d3cccc64cd31b0716.tar.gz
israwhidebroken-c992f30fcaf9e2184792e55d3cccc64cd31b0716.tar.xz
israwhidebroken-c992f30fcaf9e2184792e55d3cccc64cd31b0716.zip
make sure update_tree passes ints to IntCols
-rw-r--r--israwhidebroken/controllers.py12
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),