Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
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."""
|