« first day (1056 days earlier)      last day (2285 days later) » 

5:09 AM
hi everyone need help
 
Help will always be given to those who seek it
 
cur.execute("Select * from home_assignreportsdata")
rows = cur.fetchall()
for row in rows:
print (row)
queryname = row[6]
print (queryname)
email_add = row[2]
cur.execute("Select * from home_reportcreationdata where query_name = " + queryname)
rows = cur.fetchall()
print (rows)
for row in rows:
mail_body = row[5]
server = smtplib.SMTP('smtp.gmail.com', 587)
server.starttls()
server.login("emial@gmail.com", "pwd")
send_email(mail_body,email_add)
i want to send email on queryname
but i m getting the queryname but with error that
connection sucessfull
(2, 'user1', 'hiteshroy@pyclans.com', True, 'email', 26, 'query1', '')
query1
Traceback (most recent call last):
File "hello.py", line 26, in <module>
cur.execute("Select * from home_reportcreationdata where query_name = " + queryname)
psycopg2.ProgrammingError: column "query1" does not exist
LINE 1: ...ect * from home_reportcreationdata where query_name = query1
 
@HiteshRoy Please read the room rules.
 
@Code-Apprentice why
 
5:25 AM
@HiteshRoy Why not?
3. Only paste code directly into chat if it is not very long.
There is no hard limit, but about a dozen lines is acceptable. For longer code, use an external paste tool such as dpaste.
4. Double check that your code is properly formatted.
 
What was that sound?
/plonk
 
12 messages moved from Python
 
 
9 hours later…
2:50 PM
What does that sign mean?
 
end of paragraph, as far as i know. it is also sometimes link-able, in wikis and such, so that you can provide a link to a specific section
 
@SebastianNielsen duckduckgo.com/?q=%C2%B6&t=ffab&ia=web try searching. Please, please try searching. Why did you need to ask us? You can literally search for the symbol and get the answer.
 
Because I love ya guys :)
 
If you love us, next time try searching first.
 
2:55 PM
That was rude. I honestly forgot about duckduckgo, I tried searching for i on google but that didn't show any results.
 
try without the quotes
 
Okay, that's weird.
 
14 messages moved from Python
 
 
6 hours later…
9:24 PM
Has there been any performance disruptions from the Intel fuckery?
 
1 message moved from Python
 

« first day (1056 days earlier)      last day (2285 days later) »