Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions .github/workflows/bottube-digest-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,32 @@ on:
schedule:
- cron: '0 9 * * MON'

# Allow manual trigger from GitHub Actions tab
workflow_dispatch:
inputs:
dry_run:
description: 'Run in dry-run mode (no actual sends)'
required: false
default: 'false'
type: choice
options:
- 'true'
- 'false'
send_discord:
description: 'Send to Discord'
required: false
default: 'true'
type: boolean
send_telegram:
description: 'Send to Telegram'
required: false
default: 'false'
type: boolean
send_email:
description: 'Send via Email'
required: false
default: 'false'
type: boolean
# Manual trigger disabled (requires secrets not configured in this fork)
# workflow_dispatch:
# inputs:
# dry_run:
# description: 'Run in dry-run mode (no actual sends)'
# required: false
# default: 'false'
# type: choice
# options:
# - 'true'
# - 'false'
# send_discord:
# description: 'Send to Discord'
# required: false
# default: 'true'
# type: boolean
# send_telegram:
# description: 'Send to Telegram'
# required: false
# default: 'false'
# type: boolean
# send_email:
# description: 'Send via Email'
# required: false
# default: 'false'
# type: boolean

jobs:
send-digest:
Expand Down
8 changes: 4 additions & 4 deletions issue2307_boot_chime/src/proof_of_iron.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,11 +495,11 @@ def _save_features(self, features_hash: str,
"""Cache features for future comparison"""
try:
import sqlite3
import pickle
import json
conn = sqlite3.connect(self.db_path)
c = conn.cursor()

features_data = pickle.dumps({
features_data = json.dumps({
'mfcc_mean': features.mfcc_mean.tolist(),
'mfcc_std': features.mfcc_std.tolist(),
'spectral_centroid': features.spectral_centroid,
Expand Down Expand Up @@ -527,7 +527,7 @@ def _load_features(self, features_hash: str) -> Optional[FingerprintFeatures]:
"""Load cached features"""
try:
import sqlite3
import pickle
import json
conn = sqlite3.connect(self.db_path)
c = conn.cursor()
c.execute('SELECT features FROM feature_cache WHERE hash = ?',
Expand All @@ -536,7 +536,7 @@ def _load_features(self, features_hash: str) -> Optional[FingerprintFeatures]:
conn.close()

if row:
data = pickle.loads(row[0])
data = json.loads(row[0])
return FingerprintFeatures(
mfcc_mean=np.array(data['mfcc_mean']),
mfcc_std=np.array(data['mfcc_std']),
Expand Down
Loading