Removed debug lines
This commit is contained in:
@ -67,7 +67,6 @@ class Blueprint(flask.Blueprint):
|
|||||||
while self._runWorker:
|
while self._runWorker:
|
||||||
# Check if we've past the precision threshold
|
# Check if we've past the precision threshold
|
||||||
if time.time() - self._currentTS >= self.precision:
|
if time.time() - self._currentTS >= self.precision:
|
||||||
_log.debug('Threshold reached.')
|
|
||||||
# Save everything to the database
|
# Save everything to the database
|
||||||
self._save()
|
self._save()
|
||||||
# Reset variables
|
# Reset variables
|
||||||
@ -229,9 +228,6 @@ def boops(name: str):
|
|||||||
if flask.request.method == 'POST':
|
if flask.request.method == 'POST':
|
||||||
booperBP.boop(name)
|
booperBP.boop(name)
|
||||||
|
|
||||||
# Update the global counter
|
|
||||||
#db.GLOBAL.execute('UPDATE booper SET count=? WHERE id=1', (booperBP.boops,))
|
|
||||||
|
|
||||||
return {'success': True,
|
return {'success': True,
|
||||||
'total': booperBP.getTotalBoops(name),
|
'total': booperBP.getTotalBoops(name),
|
||||||
'24h': booperBP.get24hBoops(name)}
|
'24h': booperBP.get24hBoops(name)}
|
||||||
|
|||||||
Reference in New Issue
Block a user