call to super must include email and password
This commit is contained in:
parent
d6a0d5a704
commit
e0c09672b1
@ -5,7 +5,7 @@
|
||||
__author__ = """Eriks Karls"""
|
||||
__email__ = 'eriks@72.lv'
|
||||
__version__ = '0.20.0'
|
||||
__commit_id__ = "22dc18d"
|
||||
__commit_id__ = "d6a0d5a"
|
||||
|
||||
from erepublik import classes, utils
|
||||
from erepublik.citizen import Citizen
|
||||
|
@ -2135,10 +2135,8 @@ class Citizen(
|
||||
debug: bool = False
|
||||
|
||||
def __init__(self, email: str = "", password: str = "", auto_login: bool = True):
|
||||
super().__init__()
|
||||
super().__init__(email, password)
|
||||
self.__last_full_update = utils.good_timedelta(self.now, - timedelta(minutes=5))
|
||||
self.config.email = email
|
||||
self.config.password = password
|
||||
self.set_debug(True)
|
||||
if auto_login:
|
||||
self.login()
|
||||
|
Loading…
x
Reference in New Issue
Block a user