From 32ee519283240c59a74c5afd31937f9f92afa7f9 Mon Sep 17 00:00:00 2001 From: sebastienvercammen Date: Mon, 14 Aug 2017 18:23:03 +0200 Subject: [PATCH] Fix start time range. (#6) * Fix start time range. * Random integer. --- pgoapi/pgoapi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pgoapi/pgoapi.py b/pgoapi/pgoapi.py index 76089219..dded6aa6 100755 --- a/pgoapi/pgoapi.py +++ b/pgoapi/pgoapi.py @@ -25,9 +25,10 @@ from __future__ import absolute_import +import time +import random import logging import requests -import time from . import __title__, __version__, __copyright__ from pgoapi.rpc_api import RpcApi, RpcState @@ -56,7 +57,7 @@ def __init__(self, device_info=None): self.RPC_ID_LOW = 1 self.RPC_ID_HIGH = 1 - self.START_TIME = get_time(ms=True) + self.START_TIME = get_time(ms=True) - random.randint(6000, 10000) self.set_logger() self.log.info('%s v%s - %s', __title__, __version__, __copyright__)