Skip to content

Commit

Permalink
Merge pull request #111 from technologiestiftung/fix/upload_geojson
Browse files Browse the repository at this point in the history
fix: upload weather.geojson to supabase
  • Loading branch information
ff6347 authored Feb 1, 2024
2 parents 36e73c4 + 2b7d9d7 commit ef517ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion harvester/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ RUN git clone https://github.com/mapbox/tippecanoe.git && cd tippecanoe && make
COPY . /app/


CMD python /app/harvester.py && python /app/mapbox-tree-update.py
CMD python /app/harvester.py && python /app/mapbox_tree_update.py
4 changes: 3 additions & 1 deletion harvester/harvester.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from dotenv import load_dotenv
import logging
import os
from mapbox_tree_update import upload_file_to_supabase_storage

# setting up logging
logging.basicConfig()
Expand Down Expand Up @@ -307,7 +308,8 @@ def finishGeojson(feature_list, file_name):
n = text_file.write(geojson)
text_file.close()
n = None

upload_file_to_supabase_storage(path + file_name, file_name)

finishGeojson(features, "weather.geojson")
finishGeojson(features_light, "weather_light.geojson")

Expand Down
File renamed without changes.

0 comments on commit ef517ec

Please sign in to comment.