You've already forked PythonLib
mirror of
https://github.com/lifebottle/PythonLib.git
synced 2026-02-13 15:25:50 -08:00
Adding variables and changing \n to <br>
This commit is contained in:
@@ -55,7 +55,7 @@ def get_pull_requests_message(org, repo_name):
|
||||
|
||||
for pr in top5_prs:
|
||||
|
||||
message = message + "\n"
|
||||
message = message + "<br>"
|
||||
message += '{} - {} by {}'.format(pr['created_at'], pr['title'], pr['user']['login'])
|
||||
|
||||
return message
|
||||
|
||||
@@ -186,6 +186,10 @@ if __name__ == "__main__":
|
||||
game_name = args.game
|
||||
tales_instance = getTalesInstance(game_name)
|
||||
|
||||
org = 'SymphoniaLauren'
|
||||
repo_name = 'Tales-of-Rebirth'
|
||||
|
||||
|
||||
#Utility function
|
||||
if args.action == "utility":
|
||||
|
||||
@@ -199,20 +203,20 @@ if __name__ == "__main__":
|
||||
if args.action == "pack":
|
||||
|
||||
#RepoFunctions.refresh_repo("PythonLib")
|
||||
RepoFunctions.refresh_repo("Tales-Of-Rebirth")
|
||||
RepoFunctions.refresh_repo(repo_name)
|
||||
|
||||
if args.file == "SLPS":
|
||||
|
||||
#SLPS
|
||||
tales_instance.pack_Menu_File("../Data/Tales-Of-Rebirth/Disc/Original/SLPS_254.50")
|
||||
|
||||
ApacheAutomate.apache_job(['SLPS_254.50'], "Tales-Of-Rebirth")
|
||||
ApacheAutomate.apache_job(['SLPS_254.50'], repo_name)
|
||||
|
||||
|
||||
|
||||
|
||||
xdelta_name = "../Data/Tales-Of-Rebirth/Disc/New/Tales-Of-Rebirth_patch.xdelta"
|
||||
generate_xdelta_patch("Tales-Of-Rebirth", xdelta_name)
|
||||
generate_xdelta_patch(repo_name, xdelta_name)
|
||||
|
||||
file_link = GoogleAPI.upload_xdelta(xdelta_name, "Stewie") #Need to add user for the folder
|
||||
|
||||
@@ -222,6 +226,8 @@ Hi {},
|
||||
here is your xdelta patch :
|
||||
{}
|
||||
""".format('fortiersteven1@gmail.com', file_link)
|
||||
|
||||
message_text = message_text + "<br>" + RepoFunctions.get_pull_requests_message(org, repo_name)
|
||||
GoogleAPI.send_message('fortiersteven1@gmail.com', 'fortiersteven1@gmail.com', game_name + " Patch", file_link, message_text)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user