Commit b36a0651 authored by Yusril Rapsanjani's avatar Yusril Rapsanjani

Upload Api File

parent 10f8a40d
import pymysql.cursors
from module.conn import Connection
class NomorRekening:
def __init__(self):
con = Connection()
self.connection = con.get()
def isExists(self, norek):
sql = 'SELECT * FROM nasabah WHERE norek = %s'
cursor = self.connection.cursor()
#Execute
cursor.execute(sql, norek)
data = cursor.fetchone()
if data == None:
return False
else:
return True
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment