Jason пре 2 година
родитељ
комит
3517a2cdb5
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      website_clickjobs/type-Y/_execute.py

+ 1 - 2
website_clickjobs/type-Y/_execute.py

@@ -34,8 +34,7 @@ def process_one(term, target, n, confidential):
     try:
         print(term)
 
-        if confidential == 1:
-            table=db['nda_log']
+        table=db['nda_log'] if confidential == 1 else db['general_log']
 
         driver=restart_browser()
         # escaped_search_term=urllib.parse.quote(term)