Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
Main: patch invalid sender
Browse files Browse the repository at this point in the history
  • Loading branch information
jae1911 committed Jan 6, 2022
1 parent f711abd commit 37482f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def gh_webhook():
if star_action == 'deleted':
res_string = 'ok'
else:
star_sender = json.get('sender')
star_sender = json_data.get('sender')
star_timestamp = json.get('starred_at')
star_giver = star_sender['login']
res_string += f'{star_giver} starred {repo_name} on {star_timestamp}.'
Expand Down

0 comments on commit 37482f8

Please sign in to comment.