mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
♻️ Container 常量化
This commit is contained in:
parent
379e27aefe
commit
7f9c598061
7 changed files with 17 additions and 10 deletions
|
|
@ -125,7 +125,7 @@ func queryBlockIDByParentID(parentID string) (ret []string) {
|
|||
|
||||
func QueryRecentUpdatedBlocks() (ret []*Block) {
|
||||
sqlStmt := "SELECT * FROM blocks WHERE type = 'p' AND length > 1 ORDER BY updated DESC LIMIT 16"
|
||||
if "ios" == util.Container || "android" == util.Container {
|
||||
if util.ContainerIOS == util.Container || util.ContainerAndroid == util.Container {
|
||||
sqlStmt = "SELECT * FROM blocks WHERE type = 'd' ORDER BY updated DESC LIMIT 16"
|
||||
}
|
||||
rows, err := query(sqlStmt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue