Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tuberry committed Jan 4, 2021
1 parent 7404d50 commit 4c4a2ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ endif

all: $(PKGNAME).index $(PKGNAME).dict.dz

$(FILENAME).zip:
$(PKGNAME).csv:
curl -kLO $(URL)/releases/download/$(VERSION)/$(FILENAME).zip

$(PKGNAME).csv: $(FILENAME).zip
unzip $(FILENAME).zip && mv $(CSVNAME).csv $(PKGNAME).csv

$(PKGNAME).txt: $(PKGNAME).csv
Expand Down
2 changes: 2 additions & 0 deletions ecdicts.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
reader = csv.reader(f, delimiter=',')
next(reader, None)
for l in reader:
if ' ' in l[0]:
continue
g.write(':'+l[0]+':\n')
if l[3] != '':
a = '\n'.join(l[3].split('\\n'))
Expand Down

0 comments on commit 4c4a2ed

Please sign in to comment.