Try to write the plex_users table during config save.

Only load tables on user info page if we need to.
Make sure we don't pass user definable input directly into our queries.
Neaten some code.
This commit is contained in:
Tim 2015-07-01 13:11:15 +02:00
parent 0a170c20e6
commit 12331e1c4c
3 changed files with 82 additions and 55 deletions

View file

@ -352,6 +352,9 @@ class WebInterface(object):
# Write the config
plexpy.CONFIG.write()
# Check if we have our users table
plexwatch.check_db_tables()
# Reconfigure scheduler
plexpy.initialize_scheduler()