1
0
mirror of https://github.com/elisspace/FxLifeSheet.git synced 2026-08-29 15:44:00 +00:00
This commit is contained in:
Felix Krause
2021-12-06 15:17:38 +01:00
parent f9dc3bbe49
commit 9b12edeba1

View File

@@ -18,6 +18,11 @@ module Importers
l.fetch("lat"),
l.fetch("lng")
]
# TODO: Update script to speed up importing new data
# the checkins.json file is sorted with the most recent checkins first
# so we can just stop importing once we hit an existing checkin, once
# the initial import is complete
category = Hash(venue["categories"].find { |a| a["primary"] == true })["name"]
category = "Gym" if category && category.include?("Gym") # since we also have "Gym / Fitness Center"