attempting to correct automatic key generation

This commit is contained in:
Paul Liverman III 2018-03-16 16:57:52 -07:00
parent 1b55d56b43
commit 548758abf5

View File

@ -17,8 +17,8 @@ class extends Application
@keys = Keys\find user_id: @user.id
@tasks = Tasks\find user_id: @user.id -- TODO convert to paginated
unless #@keys > 0
table.insert @keys, Keys\create user_id: @user.id
unless @keys and #@keys > 0
@keys = {Keys\create user_id: @user.id}
return render: "index.logged_in"