Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maguowei committed May 6, 2022
1 parent 1c8f3c6 commit 0e60309
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: pycodestyle --max-line-length=120 starred
- name: test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_ACTION_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: starred --username maguowei --token ${GITHUB_TOKEN} --sort

# - name: Lint with flake8
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 maguowei
Copyright (c) 2022 maguowei

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion starred/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_user_starred_by_username(token, username, query=None):

for repo in data['data']['user']['starredRepositories']['nodes']:
name = repo['nameWithOwner']
description = repo['description'][:30]
description = repo['description'][:30] if repo['description'] else ''
language = repo['languages']['edges'][0]['node']['name'] if repo['languages']['edges'] else ''
url = repo['url']
stargazer_count = repo['stargazerCount']
Expand Down

0 comments on commit 0e60309

Please sign in to comment.