Commit f3cd0084 authored by horkko's avatar horkko
Browse files

Removed commented code

parent 4c69d925
......@@ -222,15 +222,9 @@ def main():
cnx = mysql.connector.connect(host=db_host, database=db_name,
user=db_user, password=db_password)
cur = cnx.cursor()
# oldbanks = {}
cur.execute("SELECT name FROM bank")
for row in cur.fetchall():
migrate_bank(cur, row[0], history=args.history)
# cur.execute("SELECT name,idbank from bank")
# for row in cur.fetchall():
# oldbanks[row[0]] = { "dbid": row[1], "name": row[0] }
# for bank,value in iter(oldbanks.items()):
# migrate_bank(cur, value)
except mysql.connector.Error as error:
if error.errno == errorcode.ER_ACCESS_DENIED_ERROR:
print("Wrong username or password: %s" % error.msg)
Supports Markdown
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