Skip to content

Commit

Permalink
Merge branch 'develop' into fix_1028_structure_to_pymagen
Browse files Browse the repository at this point in the history
  • Loading branch information
nmounet authored Mar 15, 2018
2 parents cb8f98e + 708ca95 commit cae4b24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aiida/cmdline/commands/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ def code_list(self, *args):
qb.append(Computer, computer_of="code",
project=["name"],
filters=qb_computer_filters)
qb.order_by({Code: {'id': 'asc'}})
self.print_list_res(qb, show_owner)

# If there is no filter on computers
Expand All @@ -737,6 +738,7 @@ def code_list(self, *args):
filters=qb_user_filters)
qb.append(Computer, computer_of="code",
project=["name"])
qb.order_by({Code: {'id': 'asc'}})
self.print_list_res(qb, show_owner)

# Now print all the local codes. To get the local codes we ask
Expand All @@ -757,6 +759,7 @@ def code_list(self, *args):
qb.append(User, creator_of="code",
project=["email"],
filters=qb_user_filters)
qb.order_by({Code: {'id': 'asc'}})
self.print_list_res(qb, show_owner)

@staticmethod
Expand Down

0 comments on commit cae4b24

Please sign in to comment.