Skip to content

Commit

Permalink
Update changelog.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Bejofo authored Nov 1, 2021
1 parent 3db894f commit 40ad2ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/changelog.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import requests
from datetime import datetime
from datetime import datetime, timedelta
import urllib
from concurrent.futures.thread import ThreadPoolExecutor
from concurrent.futures import as_completed
Expand All @@ -10,7 +10,7 @@
# get one here https://github.com/settings/tokens
# should look like this ghp_cCx5F6xTSn07hbSRxZW2pbFsNFyiQPCx5K19

API_KEY = os.environ["key"]
API_KEY = os.environ["GITHUB_TOKEN"]
REPO_API = 'https://api.github.com/repos/CleverRaven/Cataclysm-DDA/'

def github_fetch(path,parms={}):
Expand Down Expand Up @@ -97,5 +97,5 @@ def generate_changelogs(starting_date,ending_date=None):


if __name__ =='__main__':
starting_time = '2021-10-20'
starting_time = datetime.today() - timedelta(days=7)
generate_changelogs(datetime.fromisoformat(starting_time))

0 comments on commit 40ad2ce

Please sign in to comment.