Session dump/load, Citizen.inventory update, memory and network optimization, python3.6 support

This commit is contained in:
Eriks K
2020-10-22 16:26:59 +03:00
parent a4128b5d89
commit 241f1642ce
10 changed files with 331 additions and 260 deletions

View File

@ -1,6 +1,6 @@
from datetime import timedelta
from erepublik import Citizen, utils
from erepublik import Citizen, utils, constants
CONFIG = {
'email': 'player@email.com',
@ -18,7 +18,7 @@ def main():
player.set_debug(CONFIG.get('debug', False))
player.login()
now = player.now.replace(second=0, microsecond=0)
dt_max = now.replace(year=9999)
dt_max = constants.max_datetime
tasks = {
'eat': now,
}