calculate playlist duration

- use python's `sum()` method to add durations instead of for loop
This commit is contained in:
geoffrey45
2022-07-02 13:19:09 +03:00
committed by Mungai Geoffrey
parent 5bc0eaf8e6
commit b318c0d324
7 changed files with 27 additions and 25 deletions
+1
View File
@@ -64,6 +64,7 @@ export interface Playlist {
count?: number;
lastUpdated?: string;
thumb?: string;
duration?: number
}
export interface Notif {