mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-12 18:21:38 -05:00
Use map instead of flat_map
This commit is contained in:
parent
031c901001
commit
d2a8180a7f
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ class Immich::ImportGeodata
|
|||
|
||||
def retrieve_immich_data
|
||||
1970.upto(Date.today.year).flat_map do |year|
|
||||
(1..12).flat_map do |month_number|
|
||||
(1..12).map do |month_number|
|
||||
url = "#{immich_api_base_url}/timeline/bucket?size=MONTH&timeBucket=#{year}-#{month_number}-01"
|
||||
|
||||
JSON.parse(HTTParty.get(url, headers:).body)
|
||||
|
|
|
|||
Loading…
Reference in a new issue