Update ccc.py
Browse files
ccc.py
CHANGED
@@ -46,9 +46,9 @@ async def send_to_discord(session, asset_id, name, creator_id, creator_name, cre
|
|
46 |
try:
|
47 |
async with session.post(discord_webhook_url, json=embed) as response:
|
48 |
if response.status != 204:
|
49 |
-
|
50 |
-
except Exception
|
51 |
-
|
52 |
|
53 |
async def check_asset_batch(session, asset_ids):
|
54 |
global assets_checked, valid_assets_found
|
@@ -74,8 +74,8 @@ async def check_asset_batch(session, asset_ids):
|
|
74 |
|
75 |
await asyncio.gather(*tasks)
|
76 |
|
77 |
-
except Exception
|
78 |
-
|
79 |
|
80 |
async def fetch_asset_info(session, asset_id):
|
81 |
global assets_checked, valid_assets_found
|
@@ -106,7 +106,7 @@ async def fetch_asset_info(session, asset_id):
|
|
106 |
def parse_iso8601(date_str):
|
107 |
try:
|
108 |
return parser.isoparse(date_str)
|
109 |
-
except ValueError
|
110 |
return None
|
111 |
|
112 |
def generate_base_id():
|
@@ -123,7 +123,6 @@ def generate_ids_batch(digit, batch_size=10000):
|
|
123 |
offset = random.randint(-1000000, 1000000)
|
124 |
ids_batch = [str(last_used_id + offset + i) for i in range(batch_size)]
|
125 |
last_used_ids[digit] += batch_size
|
126 |
-
print(f"Generated batch for digit {digit} (first 4 IDs): {ids_batch[:4]} with offset {offset}")
|
127 |
return ids_batch
|
128 |
|
129 |
async def run_scanner_instance(digit):
|
|
|
46 |
try:
|
47 |
async with session.post(discord_webhook_url, json=embed) as response:
|
48 |
if response.status != 204:
|
49 |
+
pass
|
50 |
+
except Exception:
|
51 |
+
pass
|
52 |
|
53 |
async def check_asset_batch(session, asset_ids):
|
54 |
global assets_checked, valid_assets_found
|
|
|
74 |
|
75 |
await asyncio.gather(*tasks)
|
76 |
|
77 |
+
except Exception:
|
78 |
+
pass
|
79 |
|
80 |
async def fetch_asset_info(session, asset_id):
|
81 |
global assets_checked, valid_assets_found
|
|
|
106 |
def parse_iso8601(date_str):
|
107 |
try:
|
108 |
return parser.isoparse(date_str)
|
109 |
+
except ValueError:
|
110 |
return None
|
111 |
|
112 |
def generate_base_id():
|
|
|
123 |
offset = random.randint(-1000000, 1000000)
|
124 |
ids_batch = [str(last_used_id + offset + i) for i in range(batch_size)]
|
125 |
last_used_ids[digit] += batch_size
|
|
|
126 |
return ids_batch
|
127 |
|
128 |
async def run_scanner_instance(digit):
|