mirror of
https://github.com/house-of-vanity/libopenanal.git
synced 2025-07-07 05:34:08 +00:00
Replace _null with N/D on user page. Fix avg Words per day calculation.
This commit is contained in:
@ -151,7 +151,10 @@ class DataBase:
|
||||
avg = 0
|
||||
for i in avg_lenght:
|
||||
avg += i[0]
|
||||
avg = avg / len(avg_lenght)
|
||||
if len(avg_lenght) != 0:
|
||||
avg = avg / len(avg_lenght)
|
||||
else:
|
||||
avg = 0
|
||||
day_known = (datetime.now() - parser.parse(raw1[4])).days
|
||||
if not day_known:
|
||||
day_known = 1
|
||||
|
Reference in New Issue
Block a user