|
|
@ -19,7 +19,7 @@ def addNewSite(self, site, stype, cache, path, |
|
|
|
try: |
|
|
|
newRec = SiteDB(site, stype, cache, path, enabled, ssl, fs, db, |
|
|
|
db_name, db_user, db_password, db_host, hhvm, |
|
|
|
pagespeed,php_version) |
|
|
|
pagespeed, php_version) |
|
|
|
db_session.add(newRec) |
|
|
|
db_session.commit() |
|
|
|
except Exception as e: |
|
|
@ -42,7 +42,7 @@ def getSiteInfo(self, site): |
|
|
|
def updateSiteInfo(self, site, stype='', cache='', webroot='', |
|
|
|
enabled=True, ssl=False, fs='', db='', db_name=None, |
|
|
|
db_user=None, db_password=None, db_host=None, hhvm=None, |
|
|
|
pagespeed=None,php_version='5.5'): |
|
|
|
pagespeed=None, php_version='5.5'): |
|
|
|
"""updates site record in database""" |
|
|
|
try: |
|
|
|
q = SiteDB.query.filter(SiteDB.sitename == site).first() |
|
|
|