Experiment-Collection

This commit is contained in:
Matthew Ryan Dillon 2016-02-01 15:28:02 -07:00
parent 7c1b12f833
commit 8114bb9f2c
4 changed files with 29 additions and 1 deletions

View file

@ -269,3 +269,10 @@ def _import_admin_data():
status_date=r[12], status_time=r[13], count_alive=r[4],
count_dead=r[5], flaw=flaw)
adc.save()
# Experiment-Collection
for r in c.execute('SELECT * FROM tbl_hash_collection_experiments;'):
c = Collection.objects.get(id=r[0])
e = Experiment.objects.get(id=r[1])
e.collections.add(c)
e.save()