From 17692ee34368ab8e087da35d59c59645f5be9d39 Mon Sep 17 00:00:00 2001 From: Rafay Ghafoor Date: Sat, 31 Mar 2018 13:01:34 +0500 Subject: [PATCH] fixing status --- router.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/router.py b/router.py index f699854..6805a7c 100755 --- a/router.py +++ b/router.py @@ -190,12 +190,16 @@ def set_time_limit(self, username="User_1", mac="", days="Everyday", start="1", else: print("Specified day is not in week_days.") + return 'Successful' + + + def web_filter(self, url): ''' Block website temporarily/permanently (i.e Temporarily, when time is specified). ''' - pass + return 'Successful' def block(self, mac): @@ -207,6 +211,7 @@ def block(self, mac): >>> router.block('xx:xx:xx:xx:xx:xx') ''' self.session.get(self.gateway + "wlmacflt.cmd?action=add&rmLst={}&sessionKey={}".format(devmac, self.get_session_key())) + return 'Successful' def unblock(self, mac): @@ -218,6 +223,7 @@ def unblock(self, mac): >>> router.unblock('xx:xx:xx:xx:xx:xx') ''' self.session.get(self.gateway + "wlmacflt.cmd?action=remove&rmLst={}&sessionKey={}".format(udevmac, self.get_session_key())) + return 'Successful' def reboot(self): @@ -225,4 +231,4 @@ def reboot(self): Reboots Router. ''' self.session.get(self.gateway + "rebootinfo.cgi?sessionKey={}".format(self.get_session_key())) - \ No newline at end of file + return 'Successful' \ No newline at end of file