mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-11-08 06:28:29 +01:00
Fix document missing on docify
This commit is contained in:
parent
38b1665a8b
commit
6eb9400e69
@ -1,2 +1,5 @@
|
|||||||
# Docify
|
# Docify
|
||||||
Simple PDF document manager
|
Simple PDF document manager
|
||||||
|
|
||||||
|
## Change logs
|
||||||
|
- v0.0.3-a: Fix document moved bug, sort entries by year, month, day
|
@ -50,8 +50,10 @@ local merge_files = function(data)
|
|||||||
cmd = "chmod 777 "..vfs.ospath(fpath)
|
cmd = "chmod 777 "..vfs.ospath(fpath)
|
||||||
os.execute(cmd)
|
os.execute(cmd)
|
||||||
else
|
else
|
||||||
if not vfs.move(firstfile, fpath) then
|
local cmd = "mv \""..vfs.ospath(firstfile).."\" \""..vfs.ospath(fpath).."\""
|
||||||
return error("Unable to move file")
|
os.execute(cmd)
|
||||||
|
if not vfs.exists(fpath) then
|
||||||
|
return error("Unable to move PDF file")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- move the thumb file to the cache folder
|
-- move the thumb file to the cache folder
|
||||||
|
@ -1,2 +1,5 @@
|
|||||||
# Docify
|
# Docify
|
||||||
Simple PDF document manager
|
Simple PDF document manager
|
||||||
|
|
||||||
|
## Change logs
|
||||||
|
- v0.0.3-a: Fix document moved bug, sort entries by year, month, day
|
@ -50,8 +50,10 @@ local merge_files = function(data)
|
|||||||
cmd = "chmod 777 "..vfs.ospath(fpath)
|
cmd = "chmod 777 "..vfs.ospath(fpath)
|
||||||
os.execute(cmd)
|
os.execute(cmd)
|
||||||
else
|
else
|
||||||
if not vfs.move(firstfile, fpath) then
|
local cmd = "mv \""..vfs.ospath(firstfile).."\" \""..vfs.ospath(fpath).."\""
|
||||||
return error("Unable to move file")
|
os.execute(cmd)
|
||||||
|
if not vfs.exists(fpath) then
|
||||||
|
return error("Unable to move PDF file")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- move the thumb file to the cache folder
|
-- move the thumb file to the cache folder
|
||||||
|
File diff suppressed because one or more lines are too long
@ -7,7 +7,7 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"email": ""
|
"email": ""
|
||||||
},
|
},
|
||||||
"version":"0.0.2-a",
|
"version":"0.0.3-a",
|
||||||
"category":"Other",
|
"category":"Other",
|
||||||
"iconclass":"fa fa-adn",
|
"iconclass":"fa fa-adn",
|
||||||
"mimes":["none"],
|
"mimes":["none"],
|
||||||
|
Binary file not shown.
@ -157,7 +157,7 @@ class Docify extends this.OS.application.BaseApplication
|
|||||||
@initialize()
|
@initialize()
|
||||||
|
|
||||||
update_doclist: (cid) ->
|
update_doclist: (cid) ->
|
||||||
@exec("select",{table: "docs", cond:"cid = #{cid}"})
|
@exec("select",{table: "docs", cond:"cid = #{cid} ORDER BY year DESC, month DESC, day DESC"})
|
||||||
.then (d) =>
|
.then (d) =>
|
||||||
return @error d.error if d.error
|
return @error d.error if d.error
|
||||||
v.text = v.name for v in d.result
|
v.text = v.name for v in d.result
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"email": ""
|
"email": ""
|
||||||
},
|
},
|
||||||
"version":"0.0.2-a",
|
"version":"0.0.3-a",
|
||||||
"category":"Other",
|
"category":"Other",
|
||||||
"iconclass":"fa fa-adn",
|
"iconclass":"fa fa-adn",
|
||||||
"mimes":["none"],
|
"mimes":["none"],
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Docify/README.md",
|
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Docify/README.md",
|
||||||
"category": "Other",
|
"category": "Other",
|
||||||
"author": "",
|
"author": "",
|
||||||
"version": "0.0.2-a",
|
"version": "0.0.3-a",
|
||||||
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Docify/build/release/Docify.zip"
|
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Docify/build/release/Docify.zip"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user