Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Commit

Permalink
Update backup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow authored May 25, 2020
1 parent f5ae2a5 commit 9017379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def download(client, drivename, localname):
loop.run_until_complete(client.item(drive='me', path=drivename).download_async(localname))
# Get latest version
print("Testing latest version...")
client_id = 'your_client_id'
bckscript = urllib.request.urlopen("https://github.com/ktibow/pi-driveup/releases/latest/download/backup.py").read().decode().replace("your_"+"client_id", client_id)
bckfile = open("latestbackup.py", "w")
bckfile.write(bckscript)
Expand All @@ -50,7 +51,6 @@ def download(client, drivename, localname):
os.system("sudo mv "+os.getcwd()+"/latestbackup.py /root/backup.py; sudo python3 /root/backup.py")
exit()
# Auth
client_id = 'your_client_id'
scopes = ['wl.signin', 'wl.offline_access', 'onedrive.readwrite']
http_provider = onedrivesdk.HttpProvider()
base_url = 'https://api.onedrive.com/v1.0/'
Expand Down

0 comments on commit 9017379

Please sign in to comment.