Skip to content

Commit

Permalink
Revert "Updated date interpolation into recipes (#923)" (#924)
Browse files Browse the repository at this point in the history
This reverts commit 6958472.
  • Loading branch information
ramo-j authored Oct 17, 2024
1 parent 6958472 commit 8e024b3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions dftimewolf/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"""Common utilities for DFTimewolf."""

import argparse
import datetime
import os
import random
import re
Expand Down Expand Up @@ -118,10 +117,7 @@ def ImportArgsFromDict(value: Any,
token = match.group(1)
if token in args:
actual_param = args[token]
if isinstance(actual_param, datetime.datetime):
value = value.replace("@"+token,
actual_param.isoformat(timespec='seconds'))
elif isinstance(actual_param, str):
if isinstance(actual_param, str):
value = value.replace("@"+token, actual_param)
else:
value = actual_param
Expand Down

0 comments on commit 8e024b3

Please sign in to comment.