mirror of
https://github.com/enzet/map-machine.git
synced 2025-07-12 06:08:04 +02:00
Fix timestamp reading.
This commit is contained in:
parent
81e3bc4536
commit
bd1efbfe2c
1 changed files with 2 additions and 1 deletions
|
@ -335,7 +335,8 @@ class OSMData:
|
|||
self.authors.add(way.user)
|
||||
if way.tags.get("level"):
|
||||
self.levels.union(parse_levels(way.tags["level"]))
|
||||
self.time.update(way.timestamp)
|
||||
if way.timestamp:
|
||||
self.time.update(way.timestamp)
|
||||
|
||||
def add_relation(self, relation: OSMRelation) -> None:
|
||||
"""Add relation and update map parameters."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue