Skip to content

Commit

Permalink
new comment added
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Sep 28, 2017
1 parent c9787a5 commit 8c04660
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/budy/bots/omni_bot.py
Expand Up @@ -183,6 +183,9 @@ def gc_measurements_db(self):
"Running GC for %d measurements in database ..." % len(measurements)
)

# sorts the measurements (product dimensions) according to the
# modified data, from latest to oldest to be able to iterate
# over them to remove possible duplication from the database
measurements.sort(
key = lambda v: v.meta.get("modify_date", 0),
reverse = True
Expand Down

0 comments on commit 8c04660

Please sign in to comment.