def getSiteInfo(self, site):
 try:
  q = SiteDB.query.filter((SiteDB.sitename == site)).first()
  return q
 except Exception as e:
  Log.debug(self, '{0}'.format(e))
  Log.error(self, 'Unable to query database for site info')

def getSiteInfo ( self , site ) : try : q = SiteDB . query . filter ( ( SiteDB . sitename == site ) ) . first ( ) return q except Exception as e : Log . debug ( self , '{0}' . format ( e ) ) Log . error ( self , 'Unable to query database for site info' )
retrieves site record from ee databse .