Change settings database gdrive watch to JSON

This commit is contained in:
Ozzie Isaacs
2020-08-15 15:07:03 +02:00
parent ecb160b28d
commit 4d44746a88
2 changed files with 3 additions and 12 deletions
+1 -2
View File
@@ -93,8 +93,7 @@ def watch_gdrive():
try:
result = gdriveutils.watchChange(gdriveutils.Gdrive.Instance().drive, notification_id,
'web_hook', address, gdrive_watch_callback_token, current_milli_time() + 604800*1000)
# config.config_google_drive_watch_changes_response = json.dumps(result)
# after save(), config_google_drive_watch_changes_response will be a json object, not string
config.config_google_drive_watch_changes_response = result
config.save()
except HttpError as e:
reason=json.loads(e.content)['error']['errors'][0]