neuralworm commited on
Commit
46b2cc4
·
verified ·
1 Parent(s): e8cffdf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -30,14 +30,7 @@ def get_power_result(total_sum: int, query_value: int) -> int:
30
  except (ValueError, OverflowError):
31
  return 1
32
  else:
33
- for n in range(2, 65):
34
- try:
35
- root_result = query_value ** (1.0 / n)
36
- if root_result <= total_sum:
37
- return math.ceil(root_result)
38
- except (ValueError, OverflowError):
39
- return 1
40
- return 1
41
 
42
  def find_all_matching_phrases(target_sum: int, phrase_dictionary: Dict[int, List[Dict]]) -> List[Dict]:
43
  """Finds all phrases matching a target Gematria."""
 
30
  except (ValueError, OverflowError):
31
  return 1
32
  else:
33
+ return query_value
 
 
 
 
 
 
 
34
 
35
  def find_all_matching_phrases(target_sum: int, phrase_dictionary: Dict[int, List[Dict]]) -> List[Dict]:
36
  """Finds all phrases matching a target Gematria."""