Skip to content

Commit

Permalink
cleanup comment
Browse files Browse the repository at this point in the history
  • Loading branch information
montoyjh committed Jan 23, 2018
1 parent 0bdbaea commit 91f41b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maggma/stores.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def distinct(self, key, criteria=None, all_exist=False, **kwargs):
if all_exist:
agg_pipeline.append(
{"$match": {k: {"$exists": True} for k in key}})
# use string ints as keys and replace later to avoid bug where periods
# can't be in group keys, then reconstruct after
# use string ints as keys and replace later to avoid bug
# where periods can't be in group keys, then reconstruct after
group_op = {"$group": {
"_id": {str(n): "${}".format(k) for n, k in enumerate(key)}}}
agg_pipeline.append(group_op)
Expand Down

0 comments on commit 91f41b9

Please sign in to comment.