Skip to content

Commit

Permalink
Merge pull request #14 from tttturtle-russ/refactor
Browse files Browse the repository at this point in the history
use request.json() instead of json.loads()
  • Loading branch information
mudongliang authored Aug 19, 2024
2 parents 7559886 + 328b9cf commit 240e1d2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions linux-statistic.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@


print("Getting university list...")
university_json = requests.get(
university_list:list = requests.get(
"https://github.com/Hipo/university-domains-list/raw/master/world_universities_and_domains.json"
).text
university_list: list = json.loads(university_json)
).json()


print("Getting commits list...")
Expand Down

0 comments on commit 240e1d2

Please sign in to comment.