summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/meetingtools/ac/api.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/meetingtools/ac/api.py b/src/meetingtools/ac/api.py
index 2f694d7..3ea88fd 100644
--- a/src/meetingtools/ac/api.py
+++ b/src/meetingtools/ac/api.py
@@ -74,11 +74,10 @@ class ACPClient():
self._cache = {'login':{},'group':{}}
def request(self,method,p={},raise_error=False):
- if self.session:
- p['session'] = self.session
- p['action'] = method
-
u = []
+ u.append("action=%s" % method)
+ if self.session:
+ u.append("session=%s" % self.session)
for k,v in p.items():
value = v
if type(v) == int: