From ca406f837f245470fa90fc30261546cfe9ab3678 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 24 Mar 2025 17:57:53 +0100 Subject: [PATCH] bugfixing --- app/cron_one_day_price.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/cron_one_day_price.py b/app/cron_one_day_price.py index 4f79b1c..e73d92a 100755 --- a/app/cron_one_day_price.py +++ b/app/cron_one_day_price.py @@ -73,6 +73,7 @@ async def get_todays_data(ticker): pass # The following block handles non-weekend logic and appends additional rows if needed. + ''' if current_weekday not in (5, 6): if current_date.time() >= target_time: extract_date = current_date.strftime('%Y-%m-%d') @@ -86,7 +87,7 @@ async def get_todays_data(ticker): # Concatenate the remaining_df (skipping the first row as in your original code) df_1d = pd.concat([df_1d, remaining_df[1::]], ignore_index=True) - + ''' # Convert DataFrame back to JSON list format df_1d = ujson.loads(df_1d.to_json(orient="records")) except Exception as e: