reordering tasks

This commit is contained in:
Paul Liverman III 2018-05-01 18:46:58 -07:00
parent 205f972360
commit 8333b3d1f0

View File

@ -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)}