mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 21:29:11 +00:00
Do not throw warning for beancount files with .beancount extension
This commit is contained in:
@@ -81,7 +81,10 @@ def get_beancount_files(beancount_files=None, beancount_file_filter=None, verbos
|
|||||||
|
|
||||||
all_beancount_files = absolute_beancount_files | filtered_beancount_files
|
all_beancount_files = absolute_beancount_files | filtered_beancount_files
|
||||||
|
|
||||||
files_with_non_beancount_extensions = {beancount_file for beancount_file in all_beancount_files if not beancount_file.endswith(".bean")}
|
files_with_non_beancount_extensions = {beancount_file
|
||||||
|
for beancount_file
|
||||||
|
in all_beancount_files
|
||||||
|
if not beancount_file.endswith(".bean") and not beancount_file.endswith(".beancount")}
|
||||||
if any(files_with_non_beancount_extensions):
|
if any(files_with_non_beancount_extensions):
|
||||||
print(f"[Warning] There maybe non beancount files in the input set: {files_with_non_beancount_extensions}")
|
print(f"[Warning] There maybe non beancount files in the input set: {files_with_non_beancount_extensions}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user