Vaibhav84 commited on
Commit
7c568a3
·
1 Parent(s): 8791603
Files changed (1) hide show
  1. SkillExtractV1.py +3 -5
SkillExtractV1.py CHANGED
@@ -101,17 +101,15 @@ class SkillExtractorDetailsV1:
101
  #print(df_skill_master)
102
  return df_skill_master
103
  def getSkills1():
104
- query = "select skillid,skilldetails,skilltype,skill_score from skillmaster where weightage = 0"
105
  conn = DbConnection.GetMySQLDbConnection()
106
  cursor = conn.cursor()
107
- df_skill_master = pd.read_sql_query(query, conn)
108
- df_skill_master['skilldetails'] = df_skill_master['skilldetails'].str.upper()
109
  cursor.close()
110
  # Close the connection
111
  conn.close()
112
-
113
  #print(df_skill_master)
114
- return df_skill_master
115
  def skill_Validate(df, skill):
116
  skill = skill.upper()
117
  if (len(skill.split()) < 2 and len(skill) < 3) or len(skill.split())==1:
 
101
  #print(df_skill_master)
102
  return df_skill_master
103
  def getSkills1():
 
104
  conn = DbConnection.GetMySQLDbConnection()
105
  cursor = conn.cursor()
106
+ cursor.execute("SELECT * FROM skillmaster")
 
107
  cursor.close()
108
  # Close the connection
109
  conn.close()
110
+ return cursor.fetchall()
111
  #print(df_skill_master)
112
+
113
  def skill_Validate(df, skill):
114
  skill = skill.upper()
115
  if (len(skill.split()) < 2 and len(skill) < 3) or len(skill.split())==1: