community
Steve L. Nyemba 6 years ago
parent 48beabec0d
commit 4de3914ca1

@ -139,7 +139,8 @@ class folders(analytics):
else: else:
max_size = 0 max_size = 0
for id in logs : self.set('max_size',max_size)
for id in logs :
row = pd.DataFrame(logs[id]['log']) row = pd.DataFrame(logs[id]['log'])
size = row.size_in_kb.mean() * .001 size = row.size_in_kb.mean() * .001
@ -178,4 +179,4 @@ class didact():
return self.cache[id] if id in self.cache else None return self.cache[id] if id in self.cache else None
config = {"args":{"uid":"cus_D2x3ItYNfWjSY3", "dbname":"smart-top","uri":"http://admin:@dm1n@dev.the-phi.com:5985"},"type":"CouchdbReader"} config = {"args":{"uid":"cus_D2x3ItYNfWjSY3", "dbname":"smart-top","uri":"http://admin:@dm1n@dev.the-phi.com:5985"},"type":"CouchdbReader"}
p = folders(config = config,key="cus_D2x3ItYNfWjSY3") p = folders(config = config,key="cus_D2x3ItYNfWjSY3")

Loading…
Cancel
Save