Skip to content

Commit

Permalink
fix webinterface always starting
Browse files Browse the repository at this point in the history
  • Loading branch information
overcuriousity committed Dec 16, 2024
1 parent 885f026 commit 3af4b2e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions maigret/maigret.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,10 +496,9 @@ async def main():
if args.web is not None:
from maigret.web.app import app

port = (
args.web if args.web else 5000
) # args.web is either the specified port or 5000 by const
port = args.web if args.web else 5000 # args.web is either the specified port or 5000 by default
app.run(port=port)
return

# Usernames initial list
usernames = {
Expand Down

0 comments on commit 3af4b2e

Please sign in to comment.