2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 12:06:44 +00:00

PEP fixes

This commit is contained in:
Oliver Walters 2019-04-24 23:26:16 +10:00
parent 40a18d0ce4
commit 887250cd06

View File

@ -6,11 +6,13 @@ import os
fn = 'secret_key.txt' fn = 'secret_key.txt'
def generate_key(): def generate_key():
options = string.digits + string.ascii_letters + string.punctuation options = string.digits + string.ascii_letters + string.punctuation
key = ''.join([random.choice(options) for i in range(50)]) key = ''.join([random.choice(options) for i in range(50)])
return key return key
if __name__ == '__main__': if __name__ == '__main__':
# Ensure key file is placed in same directory as this script # Ensure key file is placed in same directory as this script