Skip to content

Commit ce95dbf

Browse files
committed
👔 Split config for Curious invitations
1 parent 1a2bbf3 commit ce95dbf

5 files changed

Lines changed: 13 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 1.9.4
9+
10+
### Fixed
11+
12+
- Split config for Curious invitations.
13+
814
## 1.9.3
915

1016
### Added

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.3
1+
1.9.4

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hbnmigration",
3-
"version": "1.9.3",
3+
"version": "1.9.4",
44
"private": true,
55
"description": "HBN data migration monitoring infrastructure with Python and Node.js services",
66
"workspaces": [

python_jobs/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.3
1+
1.9.4

python_jobs/src/hbnmigration/utility_functions/cache.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
from pathlib import Path
99
from typing import Any, Optional, Sequence
1010

11-
from ..config import Config
12-
1311
logger = logging.getLogger(__name__)
1412

1513
YESTERDAY_DATE = datetime.now() - timedelta(days=1)
@@ -61,6 +59,8 @@ def get_recent_time_window(
6159
6260
"""
6361
# Check for manual recovery override
62+
from ..config import Config # noqa: PLC0415
63+
6464
if Config.RECOVERY_MODE:
6565
logger.warning("Recovery mode enabled - pulling full day's data")
6666
now = datetime.now()
@@ -167,7 +167,7 @@ def _is_expired(self, timestamp: str) -> bool:
167167
entry_time = datetime.fromisoformat(timestamp)
168168
expiry_time = entry_time + timedelta(minutes=self.ttl_minutes)
169169
return datetime.now() > expiry_time
170-
except (ValueError, TypeError):
170+
except ValueError, TypeError:
171171
return True
172172

173173
def is_processed(self, record_id: str | int, data: Optional[Any] = None) -> bool:
@@ -351,7 +351,7 @@ def get_stats(self) -> dict[str, Any]:
351351
latest_timestamp = max(
352352
str(ts) for ts in timestamps if ts is not None
353353
)
354-
except (TypeError, ValueError):
354+
except TypeError, ValueError:
355355
latest_timestamp = None
356356

357357
return {

0 commit comments

Comments
 (0)