Skip to content

Commit

Permalink
Update leetcode.js
Browse files Browse the repository at this point in the history
PC bug fix for recommited problems.
  • Loading branch information
QasimWani authored Dec 3, 2020
1 parent 5242245 commit e0f7cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/leetcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const upload = (token, hook, code, directory, filename, sha) => {
const filePath = directory + filename;
// Only increment solved problems statistics once
// New submission commits twice (README and problem)
if (filename === 'README.md') {
if (filename === 'README.md' && sha === null) {
stats.solved += 1;
stats.easy += difficulty === 'Easy' ? 1 : 0;
stats.medium += difficulty === 'Medium' ? 1 : 0;
Expand Down

0 comments on commit e0f7cef

Please sign in to comment.