dfsf
This commit is contained in:
parent
b1ed95b839
commit
cb3383bf70
1 changed files with 2 additions and 3 deletions
|
@ -517,7 +517,7 @@ def submit_post(v):
|
||||||
|
|
||||||
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_'))
|
||||||
print(filtered)
|
|
||||||
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,
|
||||||
|
@ -525,7 +525,6 @@ def submit_post(v):
|
||||||
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)
|
||||||
print(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