~andy47

https://halfcooked.com/

Trackers

~andy47/simple_log

Last active 19 days ago

~andy47/Portfolio

Last active 22 days ago

~andy47/whoswho

Last active 2 years ago

~andy47/dburi

Last active 2 years ago

~andy47/Gerald

Last active 3 years ago

#1 Package with Flit 19 days ago

Ticket created by ~andy47 on ~andy47/simple_log

I'd like to look at alternatives to packaging with setuptools. The first tool I would like to try is Flit.

#15 Add HoldingMovement 22 days ago

Ticket created by ~andy47 on ~andy47/Portfolio

Create a modal dialogue to add a HoldingMovement record from the holdings page.

#14 Add columns to holding movements 22 days ago

Ticket created by ~andy47 on ~andy47/Portfolio

Add 2 new columns to the HoldingMovement model and associated screens;

  • transaction type. one of; 'buy', 'sell', 'drp'.
  • money column for fees/brokerage

#13 Write documentation to install an instance of the Portfolio application 22 days ago

Ticket created by ~andy47 on ~andy47/Portfolio

This may also require some changes to code and configuration

#12 Add non-prod banner to base template a month ago

Comment by ~andy47 on ~andy47/Portfolio

REPORTED RESOLVED CLOSED

#12 Add non-prod banner to base template a month ago

Ticket created by ~andy47 on ~andy47/Portfolio

If the FLASK_ENV (and ENV config value) is not set to 'production' display the value in the banner of the base template. This will easily enable people viewing the web interface to know if they are using a production or non-production environment.

#11 Move database initialisation code into models.py a month ago

Comment by ~andy47 on ~andy47/Portfolio

REPORTED RESOLVED CLOSED

#11 Move database initialisation code into models.py a month ago

Comment by ~andy47 on ~andy47/Portfolio

The code is of the form;

from playhouse.db_url import connect
from models import db     
... 
connection_string = config[<whatever>].DATABASE
this_db = connect(connection_string)
db.initialize(this_db)
...

#11 Move database initialisation code into models.py a month ago

Ticket created by ~andy47 on ~andy47/Portfolio

Each client module or script has roughly the same code to connect to the target database and then initialise the db object in models.py.

Let's just put this in models.py as a callable function to reduce the complexity of the calling code and the number of modules they need to import.

#6 Fix and standardise configurations in config.py a month ago

Comment by ~andy47 on ~andy47/Portfolio

Got the link in the commit wrong but this is resolved by https://hg.sr.ht/~andy47/Portfolio/rev/53ebaae1c0ca3c6a52f136c1a40841c24dc3d75f

REPORTED RESOLVED CLOSED