Skip to content

Commit

Permalink
hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
geoservice committed Jan 2, 2020
1 parent 5a08572 commit dc8b68c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/converter/kern.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def skipFile(self, name):
year = datetime.strptime(self.upDate[-3], '%y').year # 12 -> 2012
mins = self.upDate[-2] # 183730

self.self.upDate = self.minutesdate(year, mins)
self.upDate = self.minutesdate(year, mins)
if self.getDSEndPosition() is not None and (
isinstance(self.getDSEndPosition(), datetime) and
self.upDate <= self.getDSEndPosition()):
Expand Down
4 changes: 3 additions & 1 deletion scripts/csv2istsos.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def addException(self, message):
quality = args['q']

# Offerings
off = args['o']
off = 'temporary'
if 'o' in args:
off = args['o']

# Procedures
procs = args['p']
Expand Down
4 changes: 2 additions & 2 deletions walib/istsos/services/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ def executePost(self):
TextBlock.attrib["decimalSeparator"] = "."

values = et.SubElement(DataArray, "{%s}values" % ns['swe'])
values.text = "@".join([",".join(row) for row in (
values.text = "@".join([",".join(map(str, row)) for row in (
self.json["Observation"]["result"]["DataArray"]["values"])])

# PrettyPrint XML
Expand Down Expand Up @@ -1293,4 +1293,4 @@ def executePost(self):
print(traceback.print_exc(), file=sys.stderr)
conn.rollbackTransaction()
self.setException(
"Error in fast insert (%s): %s" % (type(e), e))
"Error in fast insert (%s): %s" % (type(e), e))

0 comments on commit dc8b68c

Please sign in to comment.