fix token name

This commit is contained in:
Bhupesh-V 2023-12-19 00:38:30 +05:30
parent a6f3ed1b92
commit ef6dabe4e6
2 changed files with 4 additions and 2 deletions

View File

@ -17,6 +17,10 @@ Used for changing the text below total members & live members count in a subredd
Used for updating the Advent of Code leaderboard in the [post](https://www.reddit.com/r/developersIndia/comments/1889ar3/advent_of_code_rdevelopersindia_leaderboard_year/).
### [community-threads-grabber](https://github.com/developersIndia/deviras/tree/main/community-threads-grabber)
Used for grabbing the posts from [community threads collection](https://www.reddit.com/r/developersIndia/collection/958aef35-f9cb-414d-ab33-08bc639e47de/) and updating the [wiki](https://www.reddit.com/r/developersIndia/wiki/community-threads/).
### [job_thread](https://github.com/developersIndia/deviras/blob/job_thread)
Used for creating [hiring threads](https://www.reddit.com/r/developersIndia/?f=flair_name%3A%22Hiring%22) in the subreddit that gets the job from our [job board](https://developersindia.in/job-board/).

View File

@ -14,7 +14,6 @@ sub = "developersIndia"
def get_gist_content(gist_id):
token = os.environ["GITHUB_TOKEN"]
headers = {
"Authorization": f"token {token}",
"Accept": "application/vnd.github.v3+json",
@ -26,7 +25,6 @@ def get_gist_content(gist_id):
def update_gist(gist_id, filename, content, description=""):
token = os.environ["GITHUB_TOKEN"]
headers = {
"Authorization": f"token {token}",
"Accept": "application/vnd.github.v3+json",