Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Commit

Permalink
Move ifmain block to function (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
PerchunPak authored Mar 3, 2022
1 parent 0ec3c05 commit 00e3973
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@

from autodonate import app

if __name__ == "__main__":
def main():
parser = ArgumentParser(description="Process some integers.")
parser.add_argument("action", metavar="N", type=str)

args = parser.parse_args()

if args.action == "run":
web.run_app(app)

if __name__ == "__main__":
main()

0 comments on commit 00e3973

Please sign in to comment.