Esempio n. 1
0
 def collect_songs(self):
     self.songs = get_all_songs()
     shuffle(self.songs)
Esempio n. 2
0
def _index():
    songs = get_all_songs()
    current_song = get_playing_song()
    return render_template('index.html', songs=songs, current_song=current_song)
Esempio n. 3
0
from player.player import Player
from flaskr.models import sess
from functions.songs import get_all_songs


for song in get_all_songs():
    song.playing = 0
    sess.commit()


player = Player()
player.start()
Esempio n. 4
0
def _songlister():
    songs = get_all_songs()
    current_song = get_playing_song()
    return render_template('songlister.html', songs=songs, current_song=current_song)
Esempio n. 5
0
 def collect_songs(self):
     self.songs = get_all_songs()
     shuffle(self.songs)
Esempio n. 6
0
def _songlister():
    songs = get_all_songs()
    current_song = get_playing_song()
    return render_template('songlister.html',
                           songs=songs,
                           current_song=current_song)
Esempio n. 7
0
def _index():
    songs = get_all_songs()
    current_song = get_playing_song()
    return render_template('index.html',
                           songs=songs,
                           current_song=current_song)
Esempio n. 8
0
from player.player import Player
from flaskr.models import sess
from functions.songs import get_all_songs

for song in get_all_songs():
    song.playing = 0
    sess.commit()

player = Player()
player.start()