Skip to content

Commit

Permalink
Update cert_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Oct 2, 2024
1 parent 92d5126 commit cb9b6b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class/core/cert_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1296,9 +1296,9 @@ def getSiteNameByDomains(self, domains):
site_sql = mw.M('sites')
siteName = None
for domain in domains:
pid = sql.where('name=?', domain).getField('pid')
pid = sql.where('name=?', (domain,)).getField('pid')
if pid:
siteName = site_sql.where('id=?', pid).getField('name')
siteName = site_sql.where('id=?', (pid,)).getField('name')
break
return siteName

Expand Down

0 comments on commit cb9b6b2

Please sign in to comment.