Skip to content

Commit e2595d8

Browse files
committed
Build number added to the final output file
1 parent 49103e1 commit e2595d8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
import datetime
2+
13
def read_text(path):
24
with open(path) as file:
35
return file.read()
46

57

68
def inline_assets(html, css, js):
9+
compilation_time = datetime.datetime.now().strftime("%Y-%m-%d %H:%M")
10+
page = html.replace(f'<span id="tool-version"></span>', '<span id="tool-version">compiled on {compilation_time}<strong></strong></span>')
711
page = html.replace('<link rel="stylesheet" href="style.css">', '')
812
page = page.replace('</head>', f'<style>\n{css}\n</style>\n</head>')
913
page = page.replace('<script src="app.js"></script>', '')

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h1><a href="?">SQLMap Command Builder</a></h1>
1616
</p>
1717

1818
<p>
19-
<a href="https://github.com/vizzdoom/sqlmap-command-builder" target="_blank">Github Repository</a> for <a target="_blank" href="https://github.com/sqlmapproject/sqlmap/releases">SQLMap 1.9.4</a><br />
19+
<a href="https://github.com/vizzdoom/sqlmap-command-builder" target="_blank">Github Repository</a> <span id="tool-version"></span> for <a target="_blank" href="https://github.com/sqlmapproject/sqlmap/releases">SQLMap 1.9.4</a><br />
2020
vizzdoom/at/gmail/dot/com
2121
</p>
2222
</header>

0 commit comments

Comments
 (0)