Spaces:
Running
Running
Commit
·
c81ebe1
1
Parent(s):
9094013
Update routes/siteRoutes/sigGen.py
Browse files
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 |
-
|
|
|
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 |
|