You've already forked PythonLib
mirror of
https://github.com/lifebottle/PythonLib.git
synced 2026-02-13 15:25:50 -08:00
Create message before calling send_message function
This commit is contained in:
@@ -31,15 +31,10 @@ def get_credentials(): # Gets valid user credentials from disk.
|
||||
return credentials
|
||||
|
||||
|
||||
def send_message(sender, to, commiter_name, subject, xdelta_link):
|
||||
def send_message(sender, to, subject, xdelta_link, message_text):
|
||||
|
||||
|
||||
message_text = """
|
||||
Hi {},
|
||||
|
||||
here is your xdelta patch :
|
||||
{}
|
||||
""".format(commiter_name, xdelta_link)
|
||||
|
||||
credentials = get_credentials()
|
||||
#print (credentials)
|
||||
|
||||
@@ -216,7 +216,13 @@ if __name__ == "__main__":
|
||||
|
||||
file_link = GoogleAPI.upload_xdelta(xdelta_name, "Stewie") #Need to add user for the folder
|
||||
|
||||
GoogleAPI.send_message('fortiersteven1@gmail.com', 'fortiersteven1@gmail.com', "Stewie", game_name + " Patch", file_link)
|
||||
message_text = """
|
||||
Hi {},
|
||||
|
||||
here is your xdelta patch :
|
||||
{}
|
||||
""".format('fortiersteven1@gmail.com', file_link)
|
||||
GoogleAPI.send_message('fortiersteven1@gmail.com', 'fortiersteven1@gmail.com', game_name + " Patch", file_link)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user