true-public-access / Seagull

Seagull is a toolset to uncage information. To put an eye in the sky that guides us through the maze of bureaucracy and over the mountains of paperwork. To give us the wings to fly and eyes to see the truth.
GNU General Public License v2.0
4 stars 4 forks source link

Settings Refinement #66

Closed Iain-Crowe closed 2 months ago

Iain-Crowe commented 4 months ago

Request:

This feature is related to settingsedit.py and I suggest refining the file for better handling reading and writing.

Solution:

I suggest the settings.json file be read once during initialization and the contents are stored in a global settings variable. Updates to the settings can be applied to the global variable. The benefit of this is not reading the file every time a setting value is needed. Writes to settings.json can be done every time the setting is updated.

Alternatives:

I do not have an alternative idea. I am, however, open to discussion on the topic.