jczimmerman / tsct-portal

https://immense-garden-52830.herokuapp.com/
MIT License
0 stars 2 forks source link

cursor and database connections #74

Open PKCRY opened 4 years ago

PKCRY commented 4 years ago

https://github.com/jczimmerman/tsct-portal/blob/237fe47b2d7cb0a12394884ecb7c5f4a0e5c1a9c/portal/main.py#L55

you can open and close both cursor at the same time. Just a suggestion

cur = db.get_db().cursor()

PKCRY commented 4 years ago

if it was done on purpose let me know seems just very redundant

AndrewScholly commented 4 years ago

We originally had it as the one you showed, but we ran into some issues and changed it to the one it is now to make it easier to work with