whompratt / claans

0 stars 1 forks source link

Move functions that interact with DB to appropriate class #5

Open whompratt opened 2 months ago

whompratt commented 2 months ago

In particular, in the admin page.


Data interaction is currently handled through a specific file, data.py, to create a level of separation from the Database class, but this still requires anything that calls these functions be inside a session context.

This is useful for speeding up runtime, as multiple operations can utilise a single session context, however this does mean that this logic isn't centrallised.