sdfsdf
This commit is contained in:
parent
89f4ecefaa
commit
4632b8747b
22 changed files with 4597 additions and 4568 deletions
|
@ -32,6 +32,32 @@ tiers={
|
|||
"(Rich Bich)": 5,
|
||||
}
|
||||
|
||||
|
||||
|
||||
@app.post("/sex")
|
||||
@admin_level_required(3)
|
||||
def sex(v):
|
||||
data = {'access_token': GUMROAD_TOKEN}
|
||||
|
||||
response = [x['email'] for x in requests.get('https://api.gumroad.com/v2/products/tfcvri/subscribers', data=data, timeout=5).json()["subscribers"]]
|
||||
emails = []
|
||||
|
||||
for email in response:
|
||||
if email.endswith("@gmail.com"):
|
||||
email=email.split('@')[0]
|
||||
email=email.split('+')[0]
|
||||
email=email.replace('.','').replace('_','')
|
||||
email=f"{email}@gmail.com"
|
||||
emails.append(email)
|
||||
|
||||
users = g.db.query(User).filter(User.patron > 0, User.email != None).all()
|
||||
for u in users:
|
||||
if u.email not in emails: print(u.username)
|
||||
|
||||
return "sex"
|
||||
|
||||
|
||||
|
||||
@app.post("/settings/removebackground")
|
||||
@limiter.limit("1/second")
|
||||
@auth_required
|
||||
|
@ -511,9 +537,7 @@ def gumroad(v):
|
|||
|
||||
if not (v.email and v.is_activated): return {"error": f"You must have a verified email to verify {patron} status and claim your rewards"}, 400
|
||||
|
||||
data = {
|
||||
'access_token': GUMROAD_TOKEN,
|
||||
}
|
||||
data = {'access_token': GUMROAD_TOKEN,}
|
||||
|
||||
response = [x['email'] for x in requests.get('https://api.gumroad.com/v2/products/tfcvri/subscribers', data=data, timeout=5).json()["subscribers"]]
|
||||
emails = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue