imperialwool commited on
Commit
c81ebe1
·
1 Parent(s): 9094013

Update routes/siteRoutes/sigGen.py

Browse files
Files changed (1) hide show
  1. routes/siteRoutes/sigGen.py +2 -1
routes/siteRoutes/sigGen.py CHANGED
@@ -16,7 +16,8 @@ def signatureGen(request):
16
 
17
  key = hashlib.blake2b(text.encode(), key=ip.encode(), salt=salt.encode()).hexdigest().upper()
18
 
19
- db = helpers.EazySQLite3("C:\\Users\\InspectorJoey\\Desktop\\api\\signatures.db")
 
20
 
21
  query = db.query(f"INSERT INTO `table` (`key`, `endtime`, `creatorKey`) VALUES (\"{key}\", \"{endtime}\", \"{creatorKey}\")")
22
 
 
16
 
17
  key = hashlib.blake2b(text.encode(), key=ip.encode(), salt=salt.encode()).hexdigest().upper()
18
 
19
+ config = helpers.configFile()
20
+ db = helpers.EazySQLite3(config['signatures-db'])
21
 
22
  query = db.query(f"INSERT INTO `table` (`key`, `endtime`, `creatorKey`) VALUES (\"{key}\", \"{endtime}\", \"{creatorKey}\")")
23