df
This commit is contained in:
parent
5e4c1d99e2
commit
c423bb32c3
1 changed files with 9 additions and 9 deletions
|
@ -511,16 +511,16 @@ def submit_post(v):
|
|||
|
||||
domain = parsed_url.netloc
|
||||
|
||||
qd = parse_qs(parsed_url.query)
|
||||
filtered = dict((k, v) for k, v in qd.items() if not k.startswith('utm_'))
|
||||
# qd = parse_qs(parsed_url.query)
|
||||
# filtered = dict((k, v) for k, v in qd.items() if not k.startswith('utm_'))
|
||||
|
||||
new_url = ParseResult(scheme="https",
|
||||
netloc=parsed_url.netloc,
|
||||
path=parsed_url.path,
|
||||
params=parsed_url.params,
|
||||
query=urlencode(filtered, doseq=True),
|
||||
fragment=parsed_url.fragment)
|
||||
url = urlunparse(new_url)
|
||||
# new_url = ParseResult(scheme="https",
|
||||
# netloc=parsed_url.netloc,
|
||||
# path=parsed_url.path,
|
||||
# params=parsed_url.params,
|
||||
# query=urlencode(filtered, doseq=True),
|
||||
# fragment=parsed_url.fragment)
|
||||
# url = urlunparse(new_url)
|
||||
|
||||
repost = g.db.query(Submission).options(lazyload('*')).filter(
|
||||
Submission.url.ilike(f'{url}%'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue