db changes
Browse files
app.py
CHANGED
@@ -398,7 +398,7 @@ def SkillMatcher():
|
|
398 |
|
399 |
|
400 |
#common = set(cv_skills[cv]) & set(jd_skills[jd])
|
401 |
-
if(1==
|
402 |
if(MatchSkillsId == 0):
|
403 |
query = "select coalesce(max(skillmatchid),0) + 1 from courseskillmatch"
|
404 |
cursor_obj.execute(query)
|
@@ -407,7 +407,7 @@ def SkillMatcher():
|
|
407 |
|
408 |
|
409 |
|
410 |
-
if(1==
|
411 |
record = (MatchSkillsId, cv, jd, cosine_similarit[0][0].item(),1)
|
412 |
query = """INSERT INTO public.courseskillmatch(SkillMatchID, courseid, JDMasterID, MatchScore,isactive) VALUES (%s,%s,%s,%s,%s)"""
|
413 |
cursor_obj.execute(query, record)
|
|
|
398 |
|
399 |
|
400 |
#common = set(cv_skills[cv]) & set(jd_skills[jd])
|
401 |
+
if(1==1):
|
402 |
if(MatchSkillsId == 0):
|
403 |
query = "select coalesce(max(skillmatchid),0) + 1 from courseskillmatch"
|
404 |
cursor_obj.execute(query)
|
|
|
407 |
|
408 |
|
409 |
|
410 |
+
if(1==1):
|
411 |
record = (MatchSkillsId, cv, jd, cosine_similarit[0][0].item(),1)
|
412 |
query = """INSERT INTO public.courseskillmatch(SkillMatchID, courseid, JDMasterID, MatchScore,isactive) VALUES (%s,%s,%s,%s,%s)"""
|
413 |
cursor_obj.execute(query, record)
|