(step, working_bool=None, task=None)
| 58 | |
| 59 | |
| 60 | def checklist(step, working_bool=None, task=None): |
| 61 | clear(0) |
| 62 | global step1, step2, step3, step4, step5 |
| 63 | |
| 64 | value = completed |
| 65 | if working_bool == True: |
| 66 | value = working |
| 67 | |
| 68 | if step == 1: |
| 69 | if task: |
| 70 | val = checklist_helper(task) |
| 71 | step1 = f"| {value} | Extracting songs | ({val[0]}s){val[1]}|" |
| 72 | |
| 73 | elif step == 2: |
| 74 | if task: |
| 75 | val = checklist_helper(task) |
| 76 | step2 = f"| {value} | Extracting song-ids | ({val[0]}s){val[1]}|" |
| 77 | |
| 78 | elif step == 3: |
| 79 | if task: |
| 80 | val = checklist_helper(task) |
| 81 | step3 = f"| {value} | Generating songs | ({val[0]}s){val[1]}|" |
| 82 | |
| 83 | elif step == 4: |
| 84 | if task: |
| 85 | val = checklist_helper(task) |
| 86 | step4 = f"| {value} | Adding songs | ({val[0]}s){val[1]}|" |
| 87 | |
| 88 | elif step == 5: |
| 89 | if task: |
| 90 | val = checklist_helper(task) |
| 91 | step5 = f"| {value} | Playlist finished | ({val[0]}s){val[1]}|" |
| 92 | |
| 93 | print(topbot) |
| 94 | print(step1) |
| 95 | print(step2) |
| 96 | print(step3) |
| 97 | print(step4) |
| 98 | print(step5) |
| 99 | print(topbot) |
| 100 | |
| 101 | |
| 102 | ######################## |
no test coverage detected