1.2.2: Profile Upgraded
This commit is contained in:
@@ -589,6 +589,7 @@ class MatchParser:
|
||||
side_stats.rating2 = safe_float(fight_side.get('rating2'))
|
||||
side_stats.rating3 = safe_float(fight_side.get('rating3'))
|
||||
side_stats.rws = safe_float(fight_side.get('rws'))
|
||||
side_stats.kast = safe_float(fight_side.get('kast'))
|
||||
side_stats.mvp_count = safe_int(fight_side.get('is_mvp'))
|
||||
side_stats.flash_duration = safe_float(fight_side.get('flash_enemy_time'))
|
||||
side_stats.jump_count = safe_int(fight_side.get('jump_total'))
|
||||
|
||||
@@ -8,6 +8,7 @@ sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
|
||||
from web.services.feature_service import FeatureService
|
||||
from web.config import Config
|
||||
from web.app import create_app
|
||||
import sqlite3
|
||||
|
||||
# Setup logging
|
||||
@@ -37,8 +38,10 @@ def main():
|
||||
|
||||
# 2. Rebuild Features using the centralized logic
|
||||
try:
|
||||
count = FeatureService.rebuild_all_features()
|
||||
logger.info(f"Successfully rebuilt features for {count} players.")
|
||||
app = create_app()
|
||||
with app.app_context():
|
||||
count = FeatureService.rebuild_all_features()
|
||||
logger.info(f"Successfully rebuilt features for {count} players.")
|
||||
except Exception as e:
|
||||
logger.error(f"Error rebuilding features: {e}")
|
||||
import traceback
|
||||
|
||||
Reference in New Issue
Block a user