Skip to content
Snippets Groups Projects
Commit b35cb6a8 authored by thomaswoehlke's avatar thomaswoehlke
Browse files

### 0.0.18 Release

parent 7f74295d
No related branches found
No related tags found
No related merge requests found
......@@ -29,17 +29,17 @@ class RkiLandkreiseServiceDownload:
app.logger.info(" " + data_file + " ")
except RuntimeError as runtimeError:
app.logger.error("############################################################")
app.logger.error(" " + runtimeError + " ")
app.logger.error(" runtimeError " + runtimeError + " ")
app.logger.error("############################################################")
flash(message="error while downloading: " + self.cfg.cvsfile_path, category='error')
except AttributeError as attributeError:
app.logger.error("############################################################")
app.logger.error(attributeError)
app.logger.error(" attributeError " + attributeError + " ")
app.logger.error("############################################################")
flash(message="error after downloading: " + self.cfg.cvsfile_path, category='error')
except Exception as exception:
app.logger.error("############################################################")
app.logger.error(exception)
app.logger.error(" exception " + exception + " ")
app.logger.error("############################################################")
flash(message="error while downloading: " + self.cfg.cvsfile_path, category='error')
finally:
......
......@@ -24,17 +24,12 @@ class RkiLandkreiseServiceImport:
app.logger.info(" import into TABLE: "+self.cfg.tablename+" from "+self.cfg.cvsfile_path)
app.logger.info("------------------------------------------------------------")
row = None
if sys.platform == 'linux':
keyDate_reported ='\ufeffDate_reported'
else:
keyDate_reported = 'Date_reported'
try:
RkiLandkreiseImport.remove_all()
with open(self.cfg.cvsfile_name, newline='\n') as csv_file:
with open(self.cfg.cvsfile_path, newline='\n') as csv_file:
file_reader = csv.DictReader(csv_file, delimiter=',', quotechar='"')
k = 0
for row in file_reader:
# TODO: #140 move WhoImport to RKI in: rk_service_import.py
o = RkiLandkreiseImport(
OBJECTID=row['OBJECTID'],
ADE=row['ADE'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment