add docstrings to python code

This commit is contained in:
geoffrey45
2022-02-06 23:26:22 +03:00
parent 195a50382a
commit 60ba512e64
13 changed files with 407 additions and 277 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
import { ref } from "@vue/reactivity";
import { watch } from "@vue/runtime-core";
import media from "./mediaNotification.js";
import state from "./state.js";
import playAudio from "./playAudio.js";
import state from "./state.js";
const current = ref(state.current);
@@ -50,7 +50,7 @@ function updateNext(song_) {
}
function updatePrev(song) {
const index = state.queue.value.findIndex((item) => item.id === song.id);
const index = state.queue.value.findIndex((item) => item.id === song.track_id);
if (index == 0) {
prev.value = queue.value[queue.value.length - 1];