Fix/hotfix tpos 2 (#783)

* fix older tpos without tips

* bad math requesting invoice

* make format
This commit is contained in:
Tiago Vasconcelos
2022-07-27 16:45:17 +02:00
committed by GitHub
parent 8cac577f2f
commit 41dc1b0512
4 changed files with 13 additions and 10 deletions
+6 -5
View File
@@ -1,17 +1,18 @@
import click
import uvicorn
import click
@click.command()
@click.option('--port', default="5000", help='Port to run LNBits on')
@click.option('--host', default="127.0.0.1", help='Host to run LNBits on')
@click.option("--port", default="5000", help="Port to run LNBits on")
@click.option("--host", default="127.0.0.1", help="Host to run LNBits on")
def main(port, host):
"""Launched with `poetry run lnbits` at root level"""
uvicorn.run("lnbits.__main__:app", port=port, host=host)
if __name__ == '__main__':
if __name__ == "__main__":
main()
#def main():
# def main():
# """Launched with `poetry run start` at root level"""
# uvicorn.run("lnbits.__main__:app")