mephix / apnea-atlas

0 stars 0 forks source link

Info Window - Main Atlas #3

Closed TheLemurKnows closed 6 years ago

TheLemurKnows commented 6 years ago

I've been messing with the code in the button41_click function. The queries all seem to be working fine. I changed the preprocess function to each specific database, pool, divesite, etc (they were all preprocessEvent before). I also tried pushing the results of each query after process to a single array before sending the JSON to the html. It seems that the html is just not refreshing with this new data. Did you add any code into the events html that allowed it to keep updating with each JSON?

mephix commented 6 years ago

Fixed by awaiting the queries before sending their results to the html.