File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -144,13 +144,12 @@ def registered(m):
144144 credentials = site_alert .execute_fetch_all ("SELECT mail FROM Users WHERE telegram =?" , (m .chat .id ,))
145145 if len (credentials ) > 0 :
146146 mymsg = "You have registered this e-mail: " + credentials [0 ] + "\n Your notification status is:\n E-mail: "
147- status = site_alert .execute_fetch_all ("SELECT mailnotification FROM Users WHERE mail = ?" , (credentials [0 ],))[
148- 0 ]
147+ status = site_alert .execute_fetch_all ("SELECT mailnotification FROM Users WHERE mail = ?" , (credentials [0 ]))[0 ]
149148 mymsg += status [0 ] + "\n Telegram: "
150149 status = \
151- site_alert .execute_fetch_all ("SELECT telegramnotification FROM Users WHERE mail = ?" , (credentials [0 ], ))[0 ]
150+ site_alert .execute_fetch_all ("SELECT telegramnotification FROM Users WHERE mail = ?" , (credentials [0 ]))[0 ]
152151 mymsg += status [0 ] + "\n You are registered to:"
153- for site in site_alert .execute_fetch_all ("SELECT name FROM Registered WHERE mail = ?" , (credentials [0 ], )):
152+ for site in site_alert .execute_fetch_all ("SELECT name FROM Registered WHERE mail = ?" , (credentials [0 ])):
154153 mymsg = mymsg + "\n " + str (i ) + ") " + site [0 ]
155154 i += 1
156155 tb .send_message (m .chat .id , mymsg )
You can’t perform that action at this time.
0 commit comments