|
@@ -17,8 +17,8 @@ def job_check_resources(state_id, capital_id, resource_id):
|
|
|
if need_refill(regions, 25):
|
|
|
max_seconds = max_refill_seconds(regions, 25, 900)
|
|
|
random_seconds = random.randint(0, max_seconds)
|
|
|
- random_time = timedelta(seconds=random_seconds)
|
|
|
- scheduled_date = datetime.now() + random_time
|
|
|
+ random_time_delta = timedelta(seconds=random_seconds)
|
|
|
+ scheduled_date = datetime.now() + random_time_delta
|
|
|
job_id = 'refill_{}_{}'.format(capital_id, resource_id)
|
|
|
print('refill resource: {} at {} ({} minutes)'.format(
|
|
|
resource_id,
|