Find named row in profile and remove
(profile, name)
| 65 | |
| 66 | |
| 67 | def findAndRemove(profile, name): |
| 68 | """Find named row in profile and remove""" |
| 69 | |
| 70 | for r in range(len(profile)): |
| 71 | if profile[r]["name"] == name: |
| 72 | row = profile[r] |
| 73 | del profile[r] |
| 74 | return row |
| 75 | |
| 76 | return None |
| 77 | |
| 78 | |
| 79 | def refName(name): |