From b186214c6c0e8cf37a4545d2bd7127e82d863e0f Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Sun, 6 Jul 2025 12:59:38 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Update=20status=5Fcheck.py=20to=20a?= =?UTF-8?q?dd=20'Available=20patches'=20column?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/status_check.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/status_check.py b/scripts/status_check.py index e604112..a1b3850 100644 --- a/scripts/status_check.py +++ b/scripts/status_check.py @@ -29,7 +29,7 @@ from src.exceptions import ( from src.patches import Patches from src.utils import apkmirror_status_check, bs4_parser, handle_request_response, request_header, request_timeout -no_of_col = 8 +no_of_col = 9 combo_headers = {"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/116.0"} @@ -174,15 +174,15 @@ def generate_markdown_table(data: list[list[str]]) -> str: return "No data to generate for the table." table = ( - "| Package Name | App Icon | PlayStore| APKMirror |APKMonk |ApkPure | ApkCombo |Supported?|\n" - "|--------------|----------|----------|-----------|--------|--------|----------|----------|\n" + "| Package Name | App Icon | PlayStore| APKMirror |APKMonk |ApkPure | ApkCombo |Available patches |Supported?|\n" # noqa: E501 + "|--------------|----------|----------|-----------|--------|--------|----------|------------------|----------|\n" ) for row in data: if len(row) != no_of_col: msg = f"Each row must contain {no_of_col} columns of data." raise ValueError(msg) - table += f"| {row[0]} | {row[1]} | {row[2]} | {row[3]} |{row[4]} |{row[5]} | {row[6]} | {row[7]} |\n" + table += f"| {row[0]} | {row[1]} | {row[2]} | {row[3]} |{row[4]} |{row[5]} | {row[6]} | {row[7]} | {row[8]} |\n" return table @@ -212,6 +212,7 @@ def main() -> None: f"[APKMonk Link]({APK_MONK_APK_URL.format(app)})", f"[APKPure Link]({APK_PURE_ICON_URL.format(app)})", f"[APKCombo Link]({APK_COMBO_GENERIC_URL.format(app)})", + f"[Patches](https://revanced.app/patches?pkg={app})", "
  • - [ ]
  • ", ] for app in missing_support