Skip to content

Commit

Permalink
Add timing decorator to query_redshift_w_api
Browse files Browse the repository at this point in the history
function
  • Loading branch information
MitchellAV committed Dec 7, 2023
1 parent 56bdf2c commit 6df09ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solardatatools/dataio.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def decompress_data_to_dataframe(encoded_data):

return df

def timing(verbose: bool = True):
def timing(verbose: bool = True) -> Callable:
def decorator(func: Callable):
@wraps(func)
def wrapper(*args, **kwargs):
Expand All @@ -304,7 +304,7 @@ def wrapper(*args, **kwargs):

return decorator

# @timing(verbose)
@timing(verbose)
def query_redshift_w_api(
params: QueryParams, page: int, is_batch: bool = False
) -> requests.Response:
Expand Down

0 comments on commit 6df09ba

Please sign in to comment.