Skip to content

Commit

Permalink
Merge pull request #22775 from ggovi/condcore-utilities-popcon2dropbo…
Browse files Browse the repository at this point in the history
…x-fix0-10-1-X

Fix for the popcon procedure
  • Loading branch information
cmsbuild committed Apr 3, 2018
2 parents d71c0da + 27389a5 commit b6e7e02
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions CondCore/Utilities/python/popcon2dropbox.py
Expand Up @@ -9,8 +9,8 @@
from datetime import datetime

errorInImportFileFolder = 'import_errors'
dateformatForFolder = "%y-%m-%d-%H-%M-%S"
dateformatForLabel = "%y-%m-%d %H:%M:%S"
dateformatForFolder = "%Y-%m-%d-%H-%M-%S"
dateformatForLabel = "%Y-%m-%d %H:%M:%S"

auth_path_key = 'COND_AUTH_PATH'

Expand Down Expand Up @@ -183,10 +183,10 @@ def run( args ):
return retCode

ret = checkFile( dbName )
if ret < 0:
return ret
elif ret == 0:
return 0
if args.copy:
return copy( args, dbName )
return upload( args, dbName )
if ret > 0:
if args.copy:
ret = copy( args, dbName )
else:
ret = upload( args, dbName )
os.remove( '%s.db' %dbName )
return ret

0 comments on commit b6e7e02

Please sign in to comment.