mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-09-24 22:03:30 +01:00
fix: enable reload to debug errors
This commit is contained in:
@@ -21,4 +21,4 @@ app.include_router(router=router)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
uvicorn.run(app, host="0.0.0.0", port=8191, log_level=LOG_LEVEL) # noqa: S104
|
||||
uvicorn.run(app, host="0.0.0.0", port=8191, log_level=LOG_LEVEL, reload=True) # noqa: S104
|
||||
|
||||
+1
-1
@@ -46,4 +46,4 @@ def get_sb(
|
||||
|
||||
def save_screenshot(sb: BaseCase):
|
||||
"""Save screenshot on HTTPException."""
|
||||
sb.save_screenshot(f"screenshots/{strftime('%Y-%m-%d %H:%M:%S', gmtime())}.png")
|
||||
sb.save_screenshot(f"screenshots_{strftime('%Y-%m-%d %H:%M:%S', gmtime())}.png")
|
||||
|
||||
Reference in New Issue
Block a user