sdsad
This commit is contained in:
@@ -44,10 +44,6 @@ class EmailManager:
|
|||||||
SELECT id, email, password, client_id, refresh_token
|
SELECT id, email, password, client_id, refresh_token
|
||||||
FROM email_accounts
|
FROM email_accounts
|
||||||
WHERE in_use = 0 AND sold = 0 AND status = 'pending'
|
WHERE in_use = 0 AND sold = 0 AND status = 'pending'
|
||||||
AND email NOT IN (
|
|
||||||
SELECT email FROM email_accounts
|
|
||||||
WHERE status = 'success' OR status = 'unavailable'
|
|
||||||
)
|
|
||||||
LIMIT %s
|
LIMIT %s
|
||||||
"""
|
"""
|
||||||
accounts = await self.db.fetch_all(select_query, (num,))
|
accounts = await self.db.fetch_all(select_query, (num,))
|
||||||
@@ -129,10 +125,6 @@ class EmailManager:
|
|||||||
SELECT COUNT(*)
|
SELECT COUNT(*)
|
||||||
FROM email_accounts
|
FROM email_accounts
|
||||||
WHERE status = 'pending' AND in_use = 0 AND sold = 0
|
WHERE status = 'pending' AND in_use = 0 AND sold = 0
|
||||||
AND email NOT IN (
|
|
||||||
SELECT email FROM email_accounts
|
|
||||||
WHERE status = 'success' OR status = 'unavailable'
|
|
||||||
)
|
|
||||||
"""
|
"""
|
||||||
result = await self.db.fetch_one(query)
|
result = await self.db.fetch_one(query)
|
||||||
if result:
|
if result:
|
||||||
|
|||||||
Reference in New Issue
Block a user