File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ def read_text(path):
10
10
11
11
def compile_assets (html , css , js ):
12
12
compilation_time = datetime .datetime .now ().astimezone (pytz .timezone ('Europe/Warsaw' )).strftime ("%Y-%m-%d_%H:%M" )
13
- img_background = f' background: url("data:image/jpeg;base64,{ base64 .b64encode (open ("background.jpg" , "rb" ).read ()).decode ()} ");'
14
- css = css .replace (f" background: url('background.jpg');" , img_background )
13
+ img_background = f'url("data:image/jpeg;base64,{ base64 .b64encode (open ("background.jpg" , "rb" ).read ()).decode ()} ");'
14
+ css = css .replace (f"url('background.jpg');" , img_background )
15
15
html = html .replace (f'<span id="tool-version"></span>' , f'<span id="tool-version"> <strong>v.{ compilation_time } </strong></span>' )
16
16
html = html .replace (f'<link rel="stylesheet" href="style.css">' , f'' )
17
17
html = html .replace (f'</head>' , f'<style>\n { css } \n </style>\n </head>' )
You can’t perform that action at this time.
0 commit comments