INNER CODE UNIT · Python
time_limit
timschneeb/awesome-shizuku · scripts/check_links.py:149
time_limit = datetime.now(datetime.now().astimezone().tzinfo) - timedelta(days=2*365)
for detail in repo_details:
repo_path = detail['path']
declared_license = detail['declared_license']
print(f"Checking {repo_path}...")
info = get_repo_info(repo_path, github_token)
if info:
if info["archived"]:
archived_repos.append(info)
if info["pushed_at"] < time_limit:
inactive_repos.append(info)
actual_license = info.get("license")
if not are_licenses_consistent(declared_license, actual_license):