Commit 8ad55ade authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Merge branch 'table_eida'

parents 885c73cd adbfecf2
......@@ -115,7 +115,12 @@ def register_privileges(login, fdsn_refs):
for ref in fdsn_refs:
ref['login'] = login
insert into eida_temp_users (network, start_year, end_year, name) values (%(networkcode)s, %(startyear)s, %(endyear)s, %(login)s);
select network_id from networks where start_year=%(startyear)s and end_year=%(endyear)s and network=%(networkcode)s;
""", ref)
ref['networkid'] = cur.fetchone()[0]
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)
Supports Markdown
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