def budget_import_csv(file, table=None):
 if table:
  table.import_from_csv_file(file)
 else:
  db.import_from_csv_file(file)
  db.commit()

def budget_import_csv ( file , table = None ) : if table : table . import_from_csv_file ( file ) else : db . import_from_csv_file ( file ) db . commit ( )
import csv file into database .