Skip to content

Commit

Permalink
fix: always adding an author
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Aug 24, 2023
1 parent c85e76e commit 0cce441
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ def initializeHandler(cls, serviceInfoDict):
# These are the methods to manipulate the Productions table
#

types_addProduction = [str, str]
types_addProduction = [prodTypes, str]

def export_addProduction(self, prodName, prodDescription):
credDict = self.getRemoteCredentials()
author = credDict.get("username")
author = credDict.get("username", credDict.get("DN", credDict.get("CN")))
authorGroup = credDict.get("group")
res = self.productionDB.addProduction(prodName, prodDescription, author, authorGroup)
if res["OK"]:
gLogger.info("Added production %d" % res["Value"])
gLogger.info("Added production", res["Value"])
return res

types_deleteProduction = [prodTypes]
Expand Down

0 comments on commit 0cce441

Please sign in to comment.