From 3d3170e8f44018a436edb8986c3c20bea78dd375 Mon Sep 17 00:00:00 2001 From: Halhadus Date: Mon, 25 Nov 2024 03:45:06 +0300 Subject: [PATCH] Fixed empty line error of randomizer module for website --- randomizermodule.py | 1 + 1 file changed, 1 insertion(+) diff --git a/randomizermodule.py b/randomizermodule.py index b7c7581..ff664dd 100644 --- a/randomizermodule.py +++ b/randomizermodule.py @@ -5,6 +5,7 @@ import requests def randomize(listurl): # Please don't refresh too fast and kill my website and git server... musiclist = requests.get(listurl).text.split("\n") + musiclist = [music for music in musiclist if music != ""] html = "\n\n\n\n\n\n\n" html += "\n" html += "Halhadus' Music List\n"