Vaibhav84 commited on
Commit
1cedf7e
·
1 Parent(s): afbea99
Files changed (1) hide show
  1. RemoveSkills.py +12 -0
RemoveSkills.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import psycopg2
2
+ class RemoveSkill:
3
+ def RemoveSkillDetails(db_params, SkillName):
4
+ conn = psycopg2.connect(**db_params)
5
+ cursor = conn.cursor()
6
+ print("Removing Skills " + SkillName)
7
+ query = "update skillmaster set weightage = 0 where skilldetails = (%s)"
8
+ params = (SkillName,)
9
+ cursor.execute(query, params)
10
+ conn.commit()
11
+ cursor.close()
12
+ conn.close()