additional improvements

This commit is contained in:
Gabriel 2022-10-12 04:55:10 -04:00
parent a3d2c9f866
commit 83ae6b44f0
2 changed files with 7 additions and 2 deletions

View file

@ -258,6 +258,11 @@ Alpine.store('data',data['main'])
if (data['name']){
Alpine.store('data',data);
}
for(c in data['connections']){
fetchback(data['connections'][c]['location']+'/.well-known/interverse',function(data){
Alpine.store[data['location'],data]
});
}
});
interverse_data(url.replace("https://",'').replace('http://','').replace('/',''), function (data) {
console.log("Initializing interverse...")

View file

@ -1,5 +1,5 @@
import requests
import time,json,os
import time,json,os,random
from joblib import Parallel, delayed
ideal_delta = 60 * 15 # 15 minutes
@ -73,7 +73,7 @@ class Cache:
# If no data is returned, wait longer before attempting again
self.links[url] = {
'data': None,
'time': t+60*60 #1 hour
'time': t + (60*60) * random.randint(8,16)
}
return data