d078d44eb66ddc5ec304b69ec9d66a67a1f5d4eb gperez2 Wed May 24 12:27:22 2023 -0700 Updating the cron to also point to hgcentral, no RM diff --git src/utils/hubPublicMail src/utils/hubPublicMail index 6c09b81..3c71740 100755 --- src/utils/hubPublicMail +++ src/utils/hubPublicMail @@ -54,30 +54,33 @@ parser.print_help() exit(1) if options.debug: logging.basicConfig(level=logging.DEBUG) logging.getLogger().setLevel(logging.DEBUG) else: logging.basicConfig(level=logging.INFO) logging.getLogger().setLevel(logging.INFO) return args, options # ----------- main -------------- def getHubUrls(centralName): " return list of huburls " logging.debug("Getting hubUrls from db %s" % centralName) + if centralName == 'hgcentral': + cmd = "hgsql -h genome-centdb %s -se 'select hubUrl from hubPublic'" % centralName + else: cmd = "hgsql %s -se 'select hubUrl from hubPublic'" % centralName lines = os.popen(cmd).read().splitlines() # please do not suggest using subprocess in code review. Thx. return lines def parseEmail(s): " return only email address given email value of hub.txt. handles these weird cases " # jferna10@ucsc.edu or max@soe.ucsc.edu # yzz2 at psu.edu # <a HREF="mailto:dunham@ebi.ac.uk"TARGET=_BLANK>Ian Dunham</a> if "<" in s: return s.split('"')[1] if " at " in s: return s.replace(" at ", "@") if " or " in s: return s.split(" or ")[1]