[-] Remove RequestConfiguration class, use dict instead

This commit is contained in:
Hykilpikonna
2020-11-22 15:22:04 -05:00
parent 6105e39821
commit 7554458ed5
4 changed files with 10 additions and 22 deletions
+2 -3
View File
@@ -1,8 +1,7 @@
import re
from src.database import Database
from src.utils import toJson
from src.request_configuration import RequestConfiguration
from src.utils import toJson, create
helpMsg = """
Welcome! This bot monitors http changes!
@@ -76,7 +75,7 @@ def touch(update, context):
return "*Error:* %s cannot pass the format check" % url
# Create
database.userRequests[user][name] = RequestConfiguration(url)
database.userRequests[user][name] = {'method': 'GET', 'url': url, 'headers': {}, 'data': None}
database.save()
return "%s is successfully created!" % name