def show(): sr = input("Enter the Sr_no of FIR: ") sr = 1 mes = db.fir(sr) message = "" for i in mes.keys(): message += str(i) + ": " + str(mes[i]) + "\n\n\n" print(message)
def send_message(sr=d.recent_case()): mes = d.fir(sr) # print(mes) message = "" for i in mes.keys(): if i == "Profile": break message += str(i) + ": " + str(mes[i]) + "\n\n" print(message) account_sid = 'AC52df8e1e86559d288247f858c410c64d' auth_token = '725bdfc2e1616f209bd7c106c4f2a481' client = Client(account_sid, auth_token) message = client.messages.create(from_='whatsapp:+14155238886', body=message, to='whatsapp:+918808988674') print(message.sid)
def screen(): command(db.fir(5))
"""UserId="BOB123" Password="******" db.userid(UserId,Password)""" user = [('Alex123', "1234"), ('BOB123', "1234"), ('Zera123', "1234")] English.welcome() print("Please enter your USERID: ") user = input() print("Please enter your Password: "******"Login Successfully") sr = input("Please enter the FIR sr_no: ") mes = db.fir(sr) message = "" for i in mes.keys(): if i == "Profile": break message += str(i) + ": " + str(mes[i]) + "\n\n\n" print(message) update = input("Please give the update") db.fir_update(update, sr) mes = db.fir(sr) message = "" for i in mes.keys(): if i == "Profile": break message += str(i) + ": " + str(mes[i]) + "\n\n\n" print("FIR Register Successfully updated.\nThank you")