Sounds starting to work
This commit is contained in:
@@ -236,8 +236,7 @@ class PersonDialog(QDialog, Ui_Dialog):
|
||||
start = datetime.fromisoformat(self.sessionCombo.currentText())
|
||||
msg["Subject"] = f"TT English, Session: {start.date().isoformat()}"
|
||||
msg["From"] = "Christopher T. Johnson <cjohnson@troglodite.com>"
|
||||
# msg["To"] = self.emailEdit.text().strip()
|
||||
msg["To"] = "cjohnson@troglodite.com"
|
||||
msg["To"] = self.emailEdit.text().strip()
|
||||
msg.set_content("There is a html message you should read")
|
||||
msg.add_alternative(self.inliner.inline(html), subtype="html")
|
||||
server = smtplib.SMTP(secrets.SMTP_HOST, secrets.SMTP_PORT)
|
||||
@@ -363,12 +362,11 @@ class PersonDialog(QDialog, Ui_Dialog):
|
||||
def makeDefinitions(self) -> str:
|
||||
query = QSqlQuery()
|
||||
query.prepare(
|
||||
"SELECT w.word, w.definition FROM sessions s "
|
||||
"LEFT JOIN session_word sw "
|
||||
"ON (s.session_id = s.session_id) "
|
||||
"SELECT w.word, w.definition "
|
||||
"FROM session_word sw "
|
||||
"LEFT JOIN words w "
|
||||
"ON (sw.word_id = w.word_id) "
|
||||
"WHERE s.session_id = :session_id "
|
||||
"WHERE sw.session_id = :session_id "
|
||||
"ORDER BY w.word"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user