@@ -27,10 +27,10 @@ export default async function({login, q, imports, data, account}, {enabled = fal
2727 total :stats . total_seconds / ( 60 * 60 ) ,
2828 daily :stats . daily_average / ( 60 * 60 ) ,
2929 } ,
30- projects :stats . projects . map ( ( { name, percent, total_seconds :total } ) => ( { name, percent :percent / 100 , total} ) ) . sort ( ( a , b ) => b . percent - a . percent ) . slice ( 0 , limit ) ,
31- languages :stats . languages . map ( ( { name, percent, total_seconds :total } ) => ( { name, percent :percent / 100 , total} ) ) . sort ( ( a , b ) => b . percent - a . percent ) . slice ( 0 , limit ) ,
32- os :stats . operating_systems . map ( ( { name, percent, total_seconds :total } ) => ( { name, percent :percent / 100 , total} ) ) . sort ( ( a , b ) => b . percent - a . percent ) . slice ( 0 , limit ) ,
33- editors :stats . editors . map ( ( { name, percent, total_seconds :total } ) => ( { name, percent :percent / 100 , total} ) ) . sort ( ( a , b ) => b . percent - a . percent ) . slice ( 0 , limit ) ,
30+ projects :stats . projects ? .map ( ( { name, percent, total_seconds :total } ) => ( { name, percent :percent / 100 , total} ) ) . sort ( ( a , b ) => b . percent - a . percent ) . slice ( 0 , limit ) ,
31+ languages :stats . languages ? .map ( ( { name, percent, total_seconds :total } ) => ( { name, percent :percent / 100 , total} ) ) . sort ( ( a , b ) => b . percent - a . percent ) . slice ( 0 , limit ) ,
32+ os :stats . operating_systems ? .map ( ( { name, percent, total_seconds :total } ) => ( { name, percent :percent / 100 , total} ) ) . sort ( ( a , b ) => b . percent - a . percent ) . slice ( 0 , limit ) ,
33+ editors :stats . editors ? .map ( ( { name, percent, total_seconds :total } ) => ( { name, percent :percent / 100 , total} ) ) . sort ( ( a , b ) => b . percent - a . percent ) . slice ( 0 , limit ) ,
3434 }
3535
3636 //Result
0 commit comments