Commit adbfecf2 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer

table eida dédiée (avec network_id)

parent 89a5bb89
......@@ -120,7 +120,7 @@ def register_privileges(login, fdsn_refs):
ref['networkid'] = cur.fetchone()[0]
logging.info(ref)
cur.execute("""
insert into aut_user (network_id, network, start_year, end_year, name) values (%(networkid)s, %(networkcode)s, %(startyear)s, %(endyear)s, %(login)s);
insert into eida_temp_users (network_id, network, start_year, end_year, name) values (%(networkid)s, %(networkcode)s, %(startyear)s, %(endyear)s, %(login)s);
""", ref)
conn.commit()
conn.close()
......@@ -185,7 +185,7 @@ def cleanup():
for uidx in users:
logging.debug(uidx)
cur.execute("""
delete from aut_user where name=%s;
delete from eida_temp_users where name=%s;
""", [uidx[1]])
conn.commit()
conn.close()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment