diff options
| author | Grail Finder <wohilas@gmail.com> | 2025-01-04 18:13:13 +0300 | 
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2025-01-04 18:13:13 +0300 | 
| commit | 4736e43631ed21fd14741daa1dde746687d330fa (patch) | |
| tree | c5dcee2930e8681397a369ae7869671bdcf568dc /pngmeta | |
| parent | 461d19aa2512fea7ac07e50c3178609850ef07c3 (diff) | |
Feat (RAG): tying tui calls to rag funcs [WIP; skip-ci]
RAG itself is annoying to properly implement, plucking sentences with no
context is useless. Also it should not be a part of main package, same
for goes for tui. The number of global vars is absurd.
Diffstat (limited to 'pngmeta')
| -rw-r--r-- | pngmeta/metareader.go | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/pngmeta/metareader.go b/pngmeta/metareader.go index 5542e86..44b8ca4 100644 --- a/pngmeta/metareader.go +++ b/pngmeta/metareader.go @@ -103,6 +103,9 @@ func ReadDirCards(dirname, uname string) ([]*models.CharCard, error) {  	}  	resp := []*models.CharCard{}  	for _, f := range files { +		if f.IsDir() { +			continue +		}  		if strings.HasSuffix(f.Name(), ".png") {  			fpath := path.Join(dirname, f.Name())  			cc, err := ReadCard(fpath, uname) | 
