From c7070d9db3ab2eea60938ab38ee09cc6d7f71457 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 20 Dec 2020 16:24:34 +0100 Subject: [PATCH] debug content --- app/tasks/UpdateGithubReadme.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/tasks/UpdateGithubReadme.ts b/app/tasks/UpdateGithubReadme.ts index daba8d9..7973b3e 100644 --- a/app/tasks/UpdateGithubReadme.ts +++ b/app/tasks/UpdateGithubReadme.ts @@ -41,7 +41,7 @@ export async function UpdateGitHubReadme(): Promise { const old_stats_table = stats_table_check.split('\n\n| Informations')[0] if (!old_stats_table) change = true - const infos_table_check = '| Informations' + content.split('| Informations')[0] + const infos_table_check = '| Informations' + content.split('| Informations')[1] if (!infos_table_check) change = true const old_infos_table = infos_table_check.split('\n\n######')[0] if (!old_infos_table) change = true @@ -61,13 +61,6 @@ export async function UpdateGitHubReadme(): Promise { console.log(" ") console.log(" STATS CHECK ") console.log(stats_table_check) - console.log(" ") - console.log(" INFOS") - console.log(infos_table) - console.log(" ") - console.log(" STATS ") - console.log(stats_table) - console.log(" ") await axios.put('https://api.github.com/repos/ArthurDanjou/ArthurDanjou/contents/README.md', { headers: {