Cleanup in index and options and improved options test coverage

This commit is contained in:
Veronica K. B. Olsen
2020-09-18 17:57:31 +02:00
parent 86bb1fc9a4
commit bb59891310
3 changed files with 62 additions and 5 deletions
+2 -1
View File
@@ -27,6 +27,7 @@
import logging
import json
import nw
from os import path
from time import time
@@ -66,9 +67,9 @@ class NWIndex():
def __init__(self, theProject, theParent):
# Internal
self.mainConf = nw.CONFIG
self.theProject = theProject
self.theParent = theParent
self.mainConf = self.theParent.mainConf
self.indexBroken = False
# Indices
-3
View File
@@ -28,7 +28,6 @@
import logging
import json
import nw
from os import path
@@ -40,9 +39,7 @@ class OptionState():
def __init__(self, theProject):
self.mainConf = nw.CONFIG
self.theProject = theProject
self.theState = {}
self.validMap = {
"GuiWritingStats": {