From 40a34c82bf0dbeb14720fcff1b2061294f98ded9 Mon Sep 17 00:00:00 2001 From: Jun Aishima Date: Thu, 30 Nov 2023 12:12:59 -0500 Subject: [PATCH] remove functions that are no longer required * these functions have been used within each other and previously removed functions --- ispybLib.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/ispybLib.py b/ispybLib.py index b6c35400..456f9906 100644 --- a/ispybLib.py +++ b/ispybLib.py @@ -38,23 +38,6 @@ def queryOneFromDB(q): except TypeError: return 0 -def personIdFromLogin(loginName): - q = ("select personId from Person where login = \""+ loginName + "\"") - return (queryOneFromDB(q)) - -def personIdFromProposal(propNum): - q = ("select personId from Proposal where proposalNumber = " + str(propNum)) - return (queryOneFromDB(q)) - -def proposalIdFromProposal(propNum): - q = ("select proposalId from Proposal where proposalNumber = " + str(propNum)) - return (queryOneFromDB(q)) - -def maxVisitNumfromProposal(propNum): - propID = proposalIdFromProposal(propNum) - q = ("select max(visit_number) from BLSession where proposalId = " + str(propID)) - return (queryOneFromDB(q)) - def insertPlotResult(dc_id,imageNumber,spotTotal,goodBraggCandidates,method2Res,totalIntegratedSignal): return