---
# System prepended metadata

title: '<center><i class="fa fa-edit"></i> Smart Dispenser: `members_addtional_card` Bug Fix </center>'
tags: [Internship]

---

# <center><i class="fa fa-edit"></i> Smart Dispenser: `members_addtional_card` Bug Fix </center>
###### tags: `Internship`
:::info
**Goal:**
- [x] Bug fix for 5 digit school ID and card ID for staff
- [x] Change ppt accordingly
- [x] Upload ppt

**Resources:**
My subfunction code
[Upload Link](https://hackmd.io/0PkbVJ3MRnC6fq_P885uBg?view)
:::

## Bug fixes
:::danger
**Current Issue:**
- Want to add the additional card functionality for staff as well
- Staff members only have 5 digit card IDs and student IDs
- Verification method produces error once it is not 8 or 10 digits

![](https://i.imgur.com/hN4GCBh.png)
:::

### Change verify functions to allow 5 digits 
- Change the if statement
    - ![](https://i.imgur.com/DSzAaFh.png)
    - ![](https://i.imgur.com/Ar6vbq9.png)


### Changes to main accordingly
![](https://i.imgur.com/Z8WbSUM.png)

![](https://i.imgur.com/jRQeuwl.png)

### Adjust text accordingly
- ![](https://i.imgur.com/JsTS9uA.png)
- ![](https://i.imgur.com/6S5QaCt.png)
- ![](https://i.imgur.com/fiidi6N.png)
- ![](https://i.imgur.com/AjUrlUq.png)

