mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-14 19:21:39 -05:00
Use RecParser in ExportParser
This commit is contained in:
parent
4e0b4b90f3
commit
10734f26ae
1 changed files with 3 additions and 5 deletions
|
|
@ -32,10 +32,8 @@ class OwnTracks::ExportParser
|
|||
private
|
||||
|
||||
def parse_data
|
||||
data.split("\n").map do |line|
|
||||
OwnTracks::Params.new(
|
||||
JSON.parse(line.split("\t* \t")[1])
|
||||
).call
|
||||
end
|
||||
json = OwnTracks::RecParser.new(data).call
|
||||
|
||||
json.map { |point| OwnTracks::Params.new(point).call }
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue