diff --git a/lib/mozilla.py b/lib/mozilla.py index bf43c17..58f0699 100644 --- a/lib/mozilla.py +++ b/lib/mozilla.py @@ -21,7 +21,7 @@ def findDefaultProfile(path): posDot = ms.skipAfterChar(directory,'.') stringParse = ms.dropBeforePos(directory,posDot) log(stringParse) - if stringParse == "default": + if stringParse == "default-release": target = directory break; if target == '': diff --git a/lib/sysparse.py b/lib/sysparse.py index 87551b1..f07dd20 100644 --- a/lib/sysparse.py +++ b/lib/sysparse.py @@ -40,6 +40,7 @@ def parse(**kwargs): parser.add_argument("--login",nargs=3,help = "login by specifing login and passwor by a given url",metavar=('USERNAME','PASSWORD','URL')) parser.add_argument("--createnwview",help = "Create a VIEW for the Region Nordwest Schweiz",action="store_true") parser.add_argument("-VC","--ValidationCheck",help = "Check if links are still valid, if not remove them",action="store_true") + parser.add_argument("--initFilters",help = "insert filters table",action="store_true") args = parser.parse_args() if args.test: @@ -48,6 +49,7 @@ def parse(**kwargs): importdb("../db/sqlite3.db","../db/Cantons.db","Cantons") if args.initdb: initdb("../db/sqlite3.db") + createFilterTable("../db/sqlite3.db") if args.rmdb: rmdb("../db/sqlite3.db","jobs") if args.login: @@ -60,6 +62,9 @@ def parse(**kwargs): createnwview("../db/sqlite3.db") if args.ValidationCheck: isStillValid("../db/sqlite3.db") + if args.initFilters: + createFilterTable("../db/sqlite3.db") + if len(kwargs)>0: print("no sysargs fiven, running as a module") vconfig = kwargs.get('config') diff --git a/requirements.txt b/requirements.txt index 0111789..e15b004 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,8 +2,10 @@ beautifulsoup4==4.12.3 httplib2==0.22.0 mmh3==4.1.0 #PySide6==6.7.1 -#PySide6==6.7.2 +PySide6==6.7.2 #PySide6.egg==info #PySide6_Addons==6.7.1 #PySide6_Essentials==6.7.1 Requests==2.32.3 +requests_html +lxml_html_clean