Skip to content

Commit

Permalink
fix: get proper value of un from query params
Browse files Browse the repository at this point in the history
  • Loading branch information
wouiSB committed Jul 24, 2024
1 parent 3631a94 commit 17e9358
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import re
import argparse
from sys import exit
from distutils.util import strtobool

DISALLOW_ROBOTS = bool(eval(os.environ.get("DISALLOW_ROBOTS", "False")))

Expand Down Expand Up @@ -76,7 +77,8 @@ async def sub(request: Request):

# get the url of original subscription
url = args.get("url")
tun: bool = args.get("tun", True)
# tun: bool = args.get("tun", True)
tun: bool = bool(strtobool(args.get("tun", "true")))

url = re.split(r"[|\n]", url)
# remove empty lines
Expand Down

0 comments on commit 17e9358

Please sign in to comment.