Skip to content

Commit

Permalink
Fix start time range. (Noctem#6)
Browse files Browse the repository at this point in the history
* Fix start time range.

* Random integer.
  • Loading branch information
sebastienvercammen authored Aug 14, 2017
1 parent 71cb419 commit 32ee519
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pgoapi/pgoapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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__)
Expand Down

0 comments on commit 32ee519

Please sign in to comment.