Ejemplo n.º 1
0
 def collect_songs(self):
     self.songs = get_all_songs()
     shuffle(self.songs)
Ejemplo 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)
Ejemplo 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()
Ejemplo 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)
Ejemplo n.º 5
0
 def collect_songs(self):
     self.songs = get_all_songs()
     shuffle(self.songs)
Ejemplo 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)
Ejemplo 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)
Ejemplo 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()