From 4e4c4bb0755cdc4d3ca1d6d999b7bff4d791e742 Mon Sep 17 00:00:00 2001 From: Anmol Date: Wed, 19 Aug 2020 21:47:30 +0530 Subject: [PATCH] ...... --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index 3557f65..a813d19 100644 --- a/main.py +++ b/main.py @@ -467,6 +467,10 @@ def get_stats(github): return stats +def star_me(): + request = requests.put("https://api.github.com/user/starred/anmol098/waka-readme-stats", headers=headers) + + def decode_readme(data: str): '''Decode the contents of old readme''' decoded_bytes = base64.b64decode(data) @@ -499,6 +503,7 @@ if __name__ == '__main__': print("Cannot find the Locale choosing default to english") translate = data['en'] waka_stats = get_stats(g) + star_me() rdmd = decode_readme(contents.content) new_readme = generate_new_readme(stats=waka_stats, readme=rdmd) committer = InputGitAuthor('readme-bot', 'readme-bot@example.com')