Compare commits
4 Commits
feat/notic
...
0c17c4ad9b
| Author | SHA1 | Date | |
|---|---|---|---|
|
0c17c4ad9b
|
|||
|
938fff8791
|
|||
|
155662d2b1
|
|||
|
97569faf0e
|
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.bsdesign filter=lfs diff=lfs merge=lfs -text
|
||||
Binary file not shown.
21
main.py
21
main.py
@@ -2026,12 +2026,27 @@ def page_not_found(e):
|
||||
#endregion
|
||||
|
||||
if __name__ == '__main__':
|
||||
#TODO add parsing to allow for custom port and host
|
||||
host = '127.0.0.1'
|
||||
port = 5000
|
||||
# Check if --host is in the command line arguments
|
||||
if "--host" in sys.argv:
|
||||
host_index = sys.argv.index("--host") + 1
|
||||
if host_index < len(sys.argv):
|
||||
host = sys.argv[host_index]
|
||||
# Check if --port is in the command line arguments
|
||||
if "--port" in sys.argv:
|
||||
port_index = sys.argv.index("--port") + 1
|
||||
if port_index < len(sys.argv):
|
||||
try:
|
||||
port = int(sys.argv[port_index])
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
# Check to see if --debug is in the command line arguments
|
||||
if "--debug" in sys.argv:
|
||||
app.run(debug=True)
|
||||
app.run(debug=True, host=host, port=port)
|
||||
else:
|
||||
app.run()
|
||||
app.run(host=host, port=port)
|
||||
|
||||
def tests():
|
||||
assert blocks_to_time(6) == "1 hrs"
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item">
|
||||
<div><a class="btn btn-primary stick-right" role="button" href="/settings/xpub">xPub</a>
|
||||
<h3>xPub Key</h3><span>Get your xPub key</span>
|
||||
<h3>xPub Key</h3><span>View your Extended Public (xPub) key</span>
|
||||
</div>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
|
||||
Reference in New Issue
Block a user