Skip to content

Commit

Permalink
Merge pull request #36 from Nullifiers/bugfix/sorting-logic
Browse files Browse the repository at this point in the history
Fix the readme sorting logic
  • Loading branch information
rishabhsingh971 authored Oct 13, 2019
2 parents 48e21c3 + be38dc5 commit 94117f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ __pycache__

# Script results
Hackerrank/
metadata*
metadata*

# Config file
*.yaml
2 changes: 1 addition & 1 deletion hsc/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Crawler:
problem_url = base_url + 'challenges/{}/problem'

new_readme_text = '## [{}]({})\n\n|Problem Name|Problem Link|Language|Solution Link|\n---|---|---|---\n'
readme_headers_len = len(new_readme_text.split('\n'))
readme_headers_len = len(new_readme_text.split('\n')) - 1
problem_readme_text = '|{}|[Problem]({})|{}|[Solution](./{})|\n'

base_folder_name = 'Hackerrank'
Expand Down

0 comments on commit 94117f3

Please sign in to comment.