Browse Source

Source code

main
Fsoky 4 years ago
parent
commit
13af34865f
  1. 5
      donationalerts_api.py

5
donationalerts_api.py

@ -3,13 +3,16 @@ from flask import request
class DonationAlertsApi: class DonationAlertsApi:
"""
This class describes work with Donation Alerts API
"""
def __init__(self, client_id, client_secret, redirect_uri, scope): def __init__(self, client_id, client_secret, redirect_uri, scope):
symbols = [",", ", ", " ", "%20"] symbols = [",", ", ", " ", "%20"]
for symbol in symbols: for symbol in symbols:
if symbol in scope: if symbol in scope:
self.scope = scope.replace(symbol, "%20").strip() self.scope = scope.replace(symbol, "%20").strip() # Replaces some symbols on '%20' for stable work
else: else:
self.scope = scope self.scope = scope

Loading…
Cancel
Save