Skip to content

Commit

Permalink
Collections and dictionaries could be edited outside.
Browse files Browse the repository at this point in the history
  • Loading branch information
zzc-tongji committed Nov 12, 2017
1 parent c4d6caa commit f77cd32
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ func (collection *collectionStruct) read(filePath string) (err error) {
vocabularyAnswer.Status = ""
// add to collection
collection.content = append(collection.content, vocabularyAnswer)
// set pointer
collection.content[len(collection.content)-1].Pointer = &(collection.content[len(collection.content)-1])
}
}
err = nil
Expand Down
2 changes: 2 additions & 0 deletions dictionary.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ func (dictionary *dictionaryStruct) read(filePath string) (err error) {
vocabularyAnswer.Status = ""
// add to dictionary
dictionary.content = append(dictionary.content, vocabularyAnswer)
// set pointer
dictionary.content[len(dictionary.content)-1].Pointer = &(dictionary.content[len(dictionary.content)-1])
}
}
err = nil
Expand Down
2 changes: 1 addition & 1 deletion query.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

const (
// version
version = "v2.1.0"
version = "v2.2.0"
// title in .xlsx file
wd = "Word"
def = "Define"
Expand Down

0 comments on commit f77cd32

Please sign in to comment.