Merge pull request #331 from lukew3/readme-fix

Update README.md
This commit is contained in:
Luke Weiler
2020-11-19 13:36:10 -05:00
committed by GitHub
2 changed files with 3 additions and 4 deletions

View File

@@ -29,8 +29,7 @@ problem, solution = mathgen.genById(0)
## List of Generators
| Id | Skill | Example problem | Example Solution | Function Name |
|------|-----------------------------------|--------------------|-----------------------|--------------------------|
<!--list start-->
|------|-------|-----------------|------------------|---------------|
| 0 | Addition | 39+50= | 89 | addition |
| 1 | Subtraction | 91-37= | 54 | subtraction |
| 2 | Multiplication | 39*1= | 39 | multiplication |

View File

@@ -41,7 +41,7 @@ for item in wList:
with open('README.md', "r") as g:
lines = g.readlines()
line = lines.index('[//]: # list start\n')
line = lines.index('|------|-------|-----------------|------------------|---------------|\n')
lines = lines[:line + 1]
for row in allRows: