|
|
|
@ -115,10 +115,10 @@ def revoke_watch_gdrive():
|
|
|
|
|
config.save()
|
|
|
|
|
return redirect(url_for('admin.db_configuration'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@csrf.exempt
|
|
|
|
|
@gdrive.route("/watch/callback", methods=['GET', 'POST'])
|
|
|
|
|
def on_received_watch_confirmation():
|
|
|
|
|
try:
|
|
|
|
|
@csrf.exempt
|
|
|
|
|
@gdrive.route("/watch/callback", methods=['GET', 'POST'])
|
|
|
|
|
def on_received_watch_confirmation():
|
|
|
|
|
if not config.config_google_drive_watch_changes_response:
|
|
|
|
|
return ''
|
|
|
|
|
if request.headers.get('X-Goog-Channel-Token') != gdrive_watch_callback_token \
|
|
|
|
@ -154,3 +154,5 @@ def on_received_watch_confirmation():
|
|
|
|
|
except Exception as ex:
|
|
|
|
|
log.debug_or_exception(ex)
|
|
|
|
|
return ''
|
|
|
|
|
except AttributeError:
|
|
|
|
|
pass
|
|
|
|
|