Debugging
This commit is contained in:
parent
1d59834e55
commit
663d8e5775
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import datetime
|
||||||
import json
|
import json
|
||||||
import urllib.request
|
import urllib.request
|
||||||
|
|
||||||
|
@ -22,7 +23,8 @@ def get_combined(token):
|
||||||
req.add_header("Content-Type", "application/json")
|
req.add_header("Content-Type", "application/json")
|
||||||
req.add_header("Authorization", "token " + token)
|
req.add_header("Authorization", "token " + token)
|
||||||
|
|
||||||
print(f"Requesting and parsing {q}")
|
timestamp=datetime.datetime.now()
|
||||||
|
print(f"{timestamp} Requesting and parsing {q}")
|
||||||
with urllib.request.urlopen(req) \
|
with urllib.request.urlopen(req) \
|
||||||
as response:
|
as response:
|
||||||
issues = json.load(response)
|
issues = json.load(response)
|
||||||
|
@ -33,7 +35,8 @@ def get_combined(token):
|
||||||
else:
|
else:
|
||||||
combined[_id] = issue
|
combined[_id] = issue
|
||||||
combined[_id]['categories'] = [q]
|
combined[_id]['categories'] = [q]
|
||||||
print(f"Done processing {q}")
|
timestamp=datetime.datetime.now()
|
||||||
|
print(f"{timestamp} Done processing {q}")
|
||||||
return combined
|
return combined
|
||||||
|
|
||||||
def process_combined(combined):
|
def process_combined(combined):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user