Skip to content

Commit

Permalink
Update GBIF .zip file URL
Browse files Browse the repository at this point in the history
Fixes #6
  • Loading branch information
maxpatiiuk committed Apr 7, 2023
1 parent d8bb5d4 commit 4e30053
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions back_end/refresh_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
from zipfile import ZipFile
from pathlib import Path
from os import system, path
from config import site_link, target_dir, \
from config import target_dir, \
mysql_host, mysql_user, mysql_password

#
print('Config')
source_url = 'http://rs.gbif.org/datasets/backbone/backbone-current.zip'
source_url = 'https://hosted-datasets.gbif.org/datasets/backbone/current/backbone.zip'
meta_url = 'https://api.gbif.org/v1/dataset/d7dddbf4-2cf0-4f39-9b2a-bb099caae36c/document'

#
Expand Down Expand Up @@ -141,7 +141,7 @@ def list_flip(original_list):
columns = list_flip(['tsn', 'name', 'common_name', 'parent_tsn', 'rank', 'kingdom', 'author', 'source'])
i = 0

printing('Parsing data')
print('Parsing data')
while True:
line = rows_file.readline()

Expand Down

0 comments on commit 4e30053

Please sign in to comment.