Some APIv2 cleanup

This commit is contained in:
JonnyWong16 2016-02-14 11:03:32 -08:00
parent 8f7dd2df6a
commit 91a5529438
3 changed files with 16 additions and 21 deletions

View file

@ -257,7 +257,7 @@ class API2:
""" Query the db with raw sql, makes backup of
the db if the backup is older then 24h
"""
if not query:
if not plexpy.CONFIG.API_SQL or not query:
return
# allow the user to shoot them self