Spaces:
Running
Running
123
Browse files- app.py +1 -1
- routes/helpers.py +2 -1
app.py
CHANGED
@@ -84,7 +84,7 @@ def getBMPreview(): return osuApi.getPreview(request)
|
|
84 |
def getBMFull(): return osuApi.getFull(request)
|
85 |
|
86 |
if __name__ == "__main__":
|
87 |
-
VERSION = '1.0
|
88 |
|
89 |
config = configFile()
|
90 |
with open(config['config-path'], "w") as outfile:
|
|
|
84 |
def getBMFull(): return osuApi.getFull(request)
|
85 |
|
86 |
if __name__ == "__main__":
|
87 |
+
VERSION = '1.0 build76'
|
88 |
|
89 |
config = configFile()
|
90 |
with open(config['config-path'], "w") as outfile:
|
routes/helpers.py
CHANGED
@@ -48,7 +48,8 @@ def checkSignature(signature: str):
|
|
48 |
#if len(query['details']) == 0: return False
|
49 |
for row in query['details']:
|
50 |
if signature == row[0]:
|
51 |
-
|
|
|
52 |
return True
|
53 |
return False
|
54 |
|
|
|
48 |
#if len(query['details']) == 0: return False
|
49 |
for row in query['details']:
|
50 |
if signature == row[0]:
|
51 |
+
newTTL = round(time.time())+3600
|
52 |
+
if newTTL > row[1]: db.query(f"UPDATE `table` SET `endtime`={newTTL} WHERE `key`=\"{signature}\"")
|
53 |
return True
|
54 |
return False
|
55 |
|