Move listenbrainz user to env var

This commit is contained in:
claude Bot committed 2023-09-09 20:48:46 +01:00
1 parent 9c689d73d6
commit 5ff56d8396
3 files changed
+18 -16

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
}
async fn index(State(pool): State<PgPool>) -> String {
let response = listenbrainz::recordings("jellywx", StatsRange::Week)
let response = listenbrainz::recordings(env::var("LISTENBRAINZ_USER")?, StatsRange::Week)
.await
.unwrap();