mirror of
https://gitea.tendokyu.moe/pinapelz/more-tachi-import-scripts.git
synced 2026-10-08 14:48:00 +03:00
force 0.2 sec cooldown between api calls in sdvx pb_merge
This commit is contained in:
@@ -2,6 +2,7 @@ import argparse
|
||||
import csv
|
||||
import os
|
||||
import requests
|
||||
import time
|
||||
|
||||
DIFFICULTY_MAPPING = {
|
||||
"NOVICE": "NOV",
|
||||
@@ -40,6 +41,7 @@ def merge_csv(input_file: str, tachi_url: str, username: str, output_file: str):
|
||||
print(f"[{current_row}/{total_rows}] Searching for score: {title} at difficulty {diff}")
|
||||
try:
|
||||
response = requests.get(api_url)
|
||||
time.sleep(0.2)
|
||||
response.raise_for_status()
|
||||
data = response.json()
|
||||
charts = data["body"]["charts"]
|
||||
|
||||
Reference in New Issue
Block a user