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
|
domain = parsed_url.netloc
|
||||||
|
|
||||||
qd = parse_qs(parsed_url.query)
|
# qd = parse_qs(parsed_url.query)
|
||||||
filtered = dict((k, v) for k, v in qd.items() if not k.startswith('utm_'))
|
# filtered = dict((k, v) for k, v in qd.items() if not k.startswith('utm_'))
|
||||||
|
|
||||||
new_url = ParseResult(scheme="https",
|
# new_url = ParseResult(scheme="https",
|
||||||
netloc=parsed_url.netloc,
|
# netloc=parsed_url.netloc,
|
||||||
path=parsed_url.path,
|
# path=parsed_url.path,
|
||||||
params=parsed_url.params,
|
# params=parsed_url.params,
|
||||||
query=urlencode(filtered, doseq=True),
|
# query=urlencode(filtered, doseq=True),
|
||||||
fragment=parsed_url.fragment)
|
# fragment=parsed_url.fragment)
|
||||||
url = urlunparse(new_url)
|
# url = urlunparse(new_url)
|
||||||
|
|
||||||
repost = g.db.query(Submission).options(lazyload('*')).filter(
|
repost = g.db.query(Submission).options(lazyload('*')).filter(
|
||||||
Submission.url.ilike(f'{url}%'),
|
Submission.url.ilike(f'{url}%'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue