Skip to content

Commit

Permalink
Increase pause to 1 sec.
Browse files Browse the repository at this point in the history
  • Loading branch information
peteb206 authored Jan 8, 2025
1 parent c558c45 commit 7f0c523
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cbn_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import re
import requests
import os
import platform
import pandas as pd
from datetime import datetime
import time
Expand All @@ -20,9 +21,12 @@ def env(key: str):
if key_value_tuple[0] == key:
return key_value_tuple[1]

print(f'platform.system() --> "{platform.system()}"')
RUNNING_LOCALLY = env('LOCAL') == '1'
now = datetime.now()

print(platform.system())

# Requests
session = requests.Session()
headers = {
Expand Down Expand Up @@ -113,7 +117,7 @@ def print_req_result(req: requests.Response):

# Functions
def pause(_):
time.sleep(0.8)
time.sleep(1)

def log(message: str):
print(log_prefix(), message) if RUNNING_LOCALLY else print(message)
Expand Down

0 comments on commit 7f0c523

Please sign in to comment.