Spaces:
Running
Running
daily limit: submissions exempted in the judgement are not counted
Browse files164 unmodified lines165166167168168169170171172173174175175176177178179164 unmodified lines
def _accepted_names(): """File names of submissions with an accepted judgement (cached for 2 minutes).""" """File names of submissions that do not use up the daily limit: accepted, or exempted by the organizer (cached for 2 minutes).""" if time.time() - _acc_cache["t"] > 120: names = set() api = _api() for f in api.list_repo_files(LEDGER, repo_type="dataset"): if f.startswith("judgements/") and f.endswith(".json"): try: if json.loads(open(api.hf_hub_download(LEDGER, f, repo_type="dataset"), encoding="utf-8").read()).get("accepted"): j = json.loads(open(api.hf_hub_download(LEDGER, f, repo_type="dataset"), encoding="utf-8").read()) if j.get("accepted") or j.get("limit_exempt"): # limit_exempt: an organizer decision recorded in the judgement (2026-11-25) names.add(f.split("/", 1)[1]) except Exception: # noqa: BLE001 passrt_challenge.py+3-2