diff options
author | luxagraf <sng@luxagraf.net> | 2018-02-06 10:36:26 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-02-06 10:36:26 -0600 |
commit | 58473dd4e0758894f15f834bddedd0caf11cfa59 (patch) | |
tree | 6f4d4fb9e120813bcbaaf03044fdb84eb7764c41 /app/birds/aba_importer.py | |
parent | adcd4671a261aa72d459b691aabb6f2eef2a0cb7 (diff) |
converted to new path url structure and updated pagination to handle it.
Diffstat (limited to 'app/birds/aba_importer.py')
-rw-r--r-- | app/birds/aba_importer.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/app/birds/aba_importer.py b/app/birds/aba_importer.py deleted file mode 100644 index 93f5bef..0000000 --- a/app/birds/aba_importer.py +++ /dev/null @@ -1,16 +0,0 @@ -for row_index in range(sheet.nrows): - if sheet.cell(row_index, 0).value != '': - sci = sheet.cell(row_index, 0).value.split("(")[1].split(")")[0] - bc = BirdClass.objects.get(scientific_name__exact=sci) - common_name = sheet.cell(row_index, 1).value - sci_name = sheet.cell(row_index, 2).value - code = int(sheet.cell(row_index, 3).value) - bclass = bc - # create bird here - b, created = Bird.objects.get_or_create( - common_name=common_name, - scientific_name=sci_name, - code=code, - bird_class=bc - ) - print(b) |