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