import numpy as np import os,sys import cv2 import csv import firebase_admin from firebase_admin import credentials from firebase_admin import db from firebase_admin import messaging import time import threading import os from numba import jit, cuda cred = credentials.Certificate('servicekey.json') try: firebase_admin.initialize_app(cred, {'databaseURL': 'https://farmbase-b2f7e-31c0c.firebaseio.com/','storageBucket': 'farmbase-b2f7e.appspot.com'}) except: print('fire running') uids = ['WtwICmHo7ng6ruOowpIFikLEFf43','8oaj2rMnDKVNQUhONaVZMwMcPOH3','WUOg8Wb062VBMdKhY2qFm4B1yyD3'] area = 0 num = 0 all_points_arr = [] for uid in uids: uid_obj = db.reference('PaidMonitoredFields').child('PMF').child(uid).get() for (fieldid, fieldobj) in uid_obj.items(): db.reference('PaidMonitoredFields').child('PMF').child(uid).child(fieldid).child('Language').set('en,mr') time.sleep(0.2)