neuralworm commited on
Commit
401d60b
1 Parent(s): e8bbf2e

initial commit

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -55,7 +55,7 @@ def date_to_words(date_string):
55
 
56
  def perform_gematria_calculation_for_date_range(start_date, end_date):
57
  """Performs gematria calculation for a date range and groups by sum."""
58
- logger.info(f"Start Date: {start_date}, End Date: {end_date}")
59
  results = {}
60
  delta = timedelta(days=1)
61
  current_date = start_date
@@ -64,9 +64,9 @@ def perform_gematria_calculation_for_date_range(start_date, end_date):
64
  # Convert date to string
65
  date_string = current_date.strftime("%Y-%m-%d")
66
  date_words = date_to_words(date_string)
67
- logger.info(f"Date: {current_date}, Day Name: {date_words}")
68
  gematria_sum = calculate_gematria_sum(date_words)
69
- logger.info(f"Gematria Sum: {gematria_sum}")
70
 
71
  if gematria_sum not in results:
72
  results[gematria_sum] = []
@@ -103,7 +103,7 @@ with gr.Blocks() as app:
103
  # --- Event Handlers ---
104
  def perform_calculation(start_date, end_date):
105
  """Performs the calculation and generates the JSON output."""
106
- logger.info(f"perform_calculation called with: start_date={start_date}, end_date={end_date}")
107
  results = perform_gematria_calculation_for_date_range(start_date, end_date)
108
  json_result = generate_json_output(results, start_date, end_date)
109
  return json_result
 
55
 
56
  def perform_gematria_calculation_for_date_range(start_date, end_date):
57
  """Performs gematria calculation for a date range and groups by sum."""
58
+ logger.debug(f"Start Date: {start_date}, End Date: {end_date}")
59
  results = {}
60
  delta = timedelta(days=1)
61
  current_date = start_date
 
64
  # Convert date to string
65
  date_string = current_date.strftime("%Y-%m-%d")
66
  date_words = date_to_words(date_string)
67
+ logger.debug(f"Date: {current_date}, Day Name: {date_words}")
68
  gematria_sum = calculate_gematria_sum(date_words)
69
+ logger.debug(f"Gematria Sum: {gematria_sum}")
70
 
71
  if gematria_sum not in results:
72
  results[gematria_sum] = []
 
103
  # --- Event Handlers ---
104
  def perform_calculation(start_date, end_date):
105
  """Performs the calculation and generates the JSON output."""
106
+ logger.debug(f"perform_calculation called with: start_date={start_date}, end_date={end_date}")
107
  results = perform_gematria_calculation_for_date_range(start_date, end_date)
108
  json_result = generate_json_output(results, start_date, end_date)
109
  return json_result