diff --git a/websitemodule.py b/websitemodule.py index 2b7d02c..84cf655 100644 --- a/websitemodule.py +++ b/websitemodule.py @@ -11,7 +11,7 @@ def read_music_database(): conn.close() return music_list -def read_count_database(year: int: datetime.datetime.now().year): +def read_count_database(year: int = datetime.datetime.now().year): if year == datetime.datetime.now().year: conn = sqlite3.connect(f'assets/localwrapped/count.db') c = conn.cursor() @@ -52,7 +52,7 @@ def generatehtmlcode(year: int): if year == datetime.datetime.now().year: html += '

Last Updated: ' + datetime.datetime.utcfromtimestamp(os.path.getmtime('assets/localwrapped/count.db').strftime('%Y-%m-%d %H:%M:%S') + ' (UTC +0, I hope.)

\n' else: - html += '

Last Updated: ' + datetime.datetime.utcfromtimestamp(os.path.getmtime(f'assets/localwrapped/count-{year}.db').strftime('%Y-%m-%d %H:%M:%S') + ' (UTC +0, I hope.)

\n' + html += '

Last Updated: ' + datetime.datetime.utcfromtimestamp(os.path.getmtime(f'assets/localwrapped/count-{year}.db').strftime('%Y-%m-%d %H:%M:%S') + ' (UTC +0, I hope.)

\n' html += '

Most Played Musics

\n' html += '
    \n' count_list_formatted = []