mirror of https://github.com/evilhero/mylar
FIX:(#1721) Fix for Clear History returning a syntax error when clearing entire snatch history
This commit is contained in:
parent
6294bb7476
commit
2420a33dd6
|
@ -3367,7 +3367,7 @@ class WebInterface(object):
|
|||
myDB = db.DBConnection()
|
||||
if type == 'all':
|
||||
logger.info(u"Clearing all history")
|
||||
myDB.action('DELETE * from snatched')
|
||||
myDB.action('DELETE from snatched')
|
||||
else:
|
||||
logger.info(u"Clearing history where status is %s" % type)
|
||||
myDB.action('DELETE from snatched WHERE Status=?', [type])
|
||||
|
|
Loading…
Reference in New Issue