reordering tasks
This commit is contained in:
parent
205f972360
commit
8333b3d1f0
2
app.moon
2
app.moon
@ -26,7 +26,7 @@ class Simplex extends Application
|
|||||||
[index: "/"]: =>
|
[index: "/"]: =>
|
||||||
if @user
|
if @user
|
||||||
@keys = APIKeys\select "WHERE user_id = ? ORDER BY created_at ASC", @user.id
|
@keys = APIKeys\select "WHERE user_id = ? ORDER BY created_at ASC", @user.id
|
||||||
@tasks = Tasks\select "WHERE user_id = ? ORDER BY created_at ASC", @user.id
|
@tasks = Tasks\select "WHERE user_id = ? ORDER BY done, created_at ASC", @user.id
|
||||||
|
|
||||||
unless @keys and #@keys > 0
|
unless @keys and #@keys > 0
|
||||||
@keys = {APIKeys\create(@user)}
|
@keys = {APIKeys\create(@user)}
|
||||||
|
Loading…
Reference in New Issue
Block a user