From 04243838b21dfbccaf49d275df2aa5320564cd8f Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Thu, 11 Jan 2007 23:00:36 +0000 Subject: [PATCH] - fix add_object() usage --- PLC/Sessions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PLC/Sessions.py b/PLC/Sessions.py index 8c9701b4..3c1543ea 100644 --- a/PLC/Sessions.py +++ b/PLC/Sessions.py @@ -37,8 +37,8 @@ class Session(Row): self.api.db.do("DELETE FROM node_session WHERE node_id = %d" % \ node['node_id']) - add = Row.add_object(Node, 'person_session') - add(self, node, commit) + add = Row.add_object(Node, 'node_session') + add(self, node, commit = commit) def sync(self, commit = True, insert = None): if not self.has_key('session_id'): -- 2.47.0