aboutsummaryrefslogtreecommitdiffstats
path: root/hlrsync
diff options
context:
space:
mode:
authorJan Luebbe <jluebbe@debian.org>2009-08-13 20:52:55 +0200
committerHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-13 20:52:55 +0200
commitbf0d5bde907b6e50949051cf4543ac8f8caa631c (patch)
treefdcb01e2209bc95ac728186bb9dafa2125373e2b /hlrsync
parentee9afe332d3d3cb895293294d9bcc76451a6466c (diff)
store imsi and tmsi, stop changing the row objects
Diffstat (limited to 'hlrsync')
-rwxr-xr-xhlrsync/hlrsync.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/hlrsync/hlrsync.py b/hlrsync/hlrsync.py
index b2a632b6..4ff720be 100755
--- a/hlrsync/hlrsync.py
+++ b/hlrsync/hlrsync.py
@@ -61,11 +61,8 @@ with web:
UPDATE reg_tokens
SET imsi = ?, extension = ?, tmsi = ?, lac = ?
WHERE subscriber_id = ?
- """, (str(subscr['imsi']), subscr['extension'], x['subscriber_id']))
- x['imsi'] = str(subscr['imsi'])
- x['extension'] = subscr['extension']
- x['tmsi'] = subscr['tmsi']
- x['lac'] = subscr['lac']
+ """, (str(subscr['imsi']), subscr['extension'],
+ subscr['tmsi'], subscr['lac'], x['subscriber_id']))
# add missing web_tokens
with web: