from server2023 import server2023 import sys import os import traceback import json import time from satellite_polygon_server_gavl import process_tmux_polygons try: file_name = sys.argv[1] except: print(traceback.format_exc()) f = open(file_name) # returns JSON object as # a dictionary data = json.load(f) uid='TCXcp5VIsfhHZrh0nm2VsgBtcGy2' # Iterating through the json # list polygons_arr = [] for polygonid, fieldid in data.items(): polygons_arr.append([fieldid, polygonid]) #print(polygons_arr) process_tmux_polygons(uid,polygons_arr)