query_data = ( sr_tag, profile, repa_user, comment, repa_decision_db)
do_query(query, query_data)
+ def purge_snapshot_manifest_exist(self, build_project_id):
+
+ if not self.is_connect():
+ return
+
+ query = "DELETE FROM snapshot_manifest WHERE build_project_id = %s"
+ query_data = (build_project_id,)
+ do_query(query, query_data)
+
def update_project_mgr_log(self, id, error_string):
if not self.is_connect():
build_project_id = bm_ext.get_build_project_id_for_buildsnapshot(snapshot_name)
if build_project_id == 0:
return False
+ #Delete data after check
+ bm_ext.purge_snapshot_manifest_exist(build_project_id)
manifest_data = []
# getid from git_repository