()
| 61 | |
| 62 | # Generate hash for assigning to a entry |
| 63 | def hash_gen(): |
| 64 | lower = string.ascii_lowercase |
| 65 | upper = string.ascii_uppercase |
| 66 | digits = string.digits |
| 67 | whole = lower + upper + digits |
| 68 | hash_string = random.sample(whole, 8) |
| 69 | hash = "".join(hash_string) |
| 70 | return hash |
| 71 | |
| 72 | # Check if a table exits, if not create one |
| 73 | # We have the following columns in the table |