Skip to content

Commit

Permalink
Ok, maybe if we sort the god forsaken thing first... (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
kauberry authored and dmlb2000 committed Nov 6, 2019
1 parent 33e2f26 commit 3fa7212
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pacifica/metadata/orm/base.py
Expand Up @@ -257,11 +257,12 @@ def available_hash_list(cls, columns_and_where_clause=None):
for any object in the database.
"""
where_clause = {k: v for k, v in columns_and_where_clause.items() if v}
columns = columns_and_where_clause.keys()
columns = list(columns_and_where_clause.keys())

if not columns:
columns = cls.get_primary_keys()

columns.sort()
hash_list = []
hash_dict = {}
# all_keys_query = cls.select(*[getattr(cls, key) for key in columns])
Expand Down

0 comments on commit 3fa7212

Please sign in to comment.