Spaces:
Sleeping
Sleeping
neuralworm
commited on
Commit
•
bb6e12a
1
Parent(s):
1b9162a
fix results (dirty)
Browse files
app.py
CHANGED
@@ -187,7 +187,7 @@ def search_gematria_in_db(gematria_sum, max_words):
|
|
187 |
for words, book, chapter, verse in results:
|
188 |
# Filter by word count (including phrases with fewer words)
|
189 |
word_count = words.count(' ') + 1 # Count spaces to get word count
|
190 |
-
if word_count
|
191 |
filtered_results.append((words, book, chapter, verse))
|
192 |
logging.debug(f"Found {len(filtered_results)} matching phrases for Gematria: {gematria_sum} after filtering.")
|
193 |
return filtered_results
|
|
|
187 |
for words, book, chapter, verse in results:
|
188 |
# Filter by word count (including phrases with fewer words)
|
189 |
word_count = words.count(' ') + 1 # Count spaces to get word count
|
190 |
+
if word_count == word_count: # Include phrases with word count <= max_words
|
191 |
filtered_results.append((words, book, chapter, verse))
|
192 |
logging.debug(f"Found {len(filtered_results)} matching phrases for Gematria: {gematria_sum} after filtering.")
|
193 |
return filtered_results
|