Skip to content

Commit 9a298e2

Browse files
authored
Merge pull request #74 from sommersoft/lib_insights_fix
Fix Dropped Repos
2 parents 66aaa38 + 02aef2d commit 9a298e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adabot/circuitpython_libraries.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def list_repos():
275275
"""
276276
repos = []
277277
result = github.get("/search/repositories",
278-
params={"q":"Adafruit_CircuitPython in:name fork:true",
278+
params={"q":"Adafruit_CircuitPython user:adafruit",
279279
"per_page": 100,
280280
"sort": "updated",
281281
"order": "asc"}
@@ -847,11 +847,12 @@ def gather_insights(repo, insights, since):
847847
list_repos function) and will fill in the provided insights dictionary
848848
with analytics it computes for the repository.
849849
"""
850+
850851
if repo["owner"]["login"] != "adafruit":
851852
return
852853
params = {"sort": "updated",
853854
"state": "all",
854-
"since": str(since)}
855+
"since": since.strftime("%Y-%m-%dT%H:%M:%SZ")}
855856
response = github.get("/repos/" + repo["full_name"] + "/issues", params=params)
856857
if not response.ok:
857858
output_handler("Insights request failed: {}".format(repo["full_name"]))

0 commit comments

Comments
 (0)