26 lines
676 B
Python
Executable File
26 lines
676 B
Python
Executable File
#!/usr/bin/env python3
|
|
import logging
|
|
import uuid
|
|
|
|
import vanth.main
|
|
import vanth.tables
|
|
|
|
LOGGER = logging.getLogger(__name__)
|
|
def main():
|
|
vanth.main.setup_logging()
|
|
config = vanth.main.get_config()
|
|
engine = vanth.main.create_db_connection(config)
|
|
|
|
new_uuid = uuid.uuid4()
|
|
query = vanth.tables.OFXSource.insert().values( # pylint: disable=no-value-for-parameter
|
|
uuid = str(new_uuid),
|
|
name = 'America First Credit Union',
|
|
fid = '54324',
|
|
bankid = '324377516',
|
|
)
|
|
results = engine.execute(query)
|
|
LOGGER.info("Created OFX source %s", results.inserted_primary_key[0])
|
|
|
|
if __name__ == '__main__':
|
|
main()
|