Closed Dark-Knight11 closed 3 years ago
@Dark-Knight11 I think found the bug. Can I work on this? (+hacktoberfest label)
Thanks for the issue! @Dark-Knight11
That's awesome! @BhandarkarPawan Make sure to read the contributing guidelines before getting started :)
@Mithil467 The fix was just a one-line addition. I have made a PR. Can you please check if it is OK?
Subject of the issue
All test records are not being saved into history. If you give one test for a specific text sample and after finishing it you press
TAB
to retry again then the new retried test won't be saved into history only the first attempt is being saved. Similarly, if you change the text with left and right arrow keys then that new test with new text is also not being saved. Only the first test after running the tool is being saved.Your environment
Windows
Mitype version 0.2.3+20.g052df91
3.8.5
Powershell 5.1.19041.1237
Steps to reproduce
TAB
to retry or change the text with left and right arrow keys.ESC
mitype -H
Expected behaviour
All test records should be saved
Actual behaviour
Only the first attempted test after running the tool is being saved
Your proposed fix (if any)
Not sure what's the problem but I believe it lies in this code somewhere https://github.com/Mithil467/mitype/blob/052df91c8b309819ef8702d26c4fe679cfb16a01/mitype/app.py#L288-L347