store imsi and tmsi, stop changing the row objects

This commit is contained in:
Jan Luebbe 2009-08-13 20:52:55 +02:00 committed by Harald Welte (local)
parent ee9afe332d
commit bf0d5bde90
1 changed files with 2 additions and 5 deletions

View File

@ -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: