Increase amount of albums shown on /np

This commit is contained in:
Laura Hausmann 2022-11-22 00:46:24 +01:00
parent b3f479467c
commit e0049b9e3e
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -5,7 +5,7 @@
@{
ViewData["title"] = "now playing";
var db = new Database.DbConn();
var albums = db.AlbumHistory.OrderByDescending(p => p.DateTime).Take(10);
var albums = db.AlbumHistory.OrderByDescending(p => p.DateTime).Take(50);
}
<p>Here you can see what kind of music I've been listening to lately. This table is updated every couple minutes from multiple data sources.</p>
@ -15,7 +15,7 @@
<th>Artist</th>
<th>Album</th>
<th style="width:12ch">Link</th>
@foreach (var album in albums.Take(50)) {
@foreach (var album in albums) {
<tr>
<td>@album.DateTime.ToString("yyyy-MM-dd")</td>
<td>@album.Artist</td>