示例#1
0
 def collect_songs(self):
     self.songs = get_all_songs()
     shuffle(self.songs)
示例#2
0
def _index():
    songs = get_all_songs()
    current_song = get_playing_song()
    return render_template('index.html', songs=songs, current_song=current_song)
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()
示例#4
0
def _songlister():
    songs = get_all_songs()
    current_song = get_playing_song()
    return render_template('songlister.html', songs=songs, current_song=current_song)
示例#5
0
 def collect_songs(self):
     self.songs = get_all_songs()
     shuffle(self.songs)
示例#6
0
def _songlister():
    songs = get_all_songs()
    current_song = get_playing_song()
    return render_template('songlister.html',
                           songs=songs,
                           current_song=current_song)
示例#7
0
def _index():
    songs = get_all_songs()
    current_song = get_playing_song()
    return render_template('index.html',
                           songs=songs,
                           current_song=current_song)
示例#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()