Skip to content

Commit

Permalink
Fixed mangling of snark times when applying a new global fudge.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vhati committed Jan 20, 2013
1 parent 59d271d commit 32bfb52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/snarkutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ def gui_fudge_users(config, snarks):
This will modify the snarks list in-place.
"""
# Sort the msgs by their real-world date (to obtain the first snark).
snarks[:] = sorted(snarks, key=lambda k: k["date"])

for snark in snarks:
# Revert each snark's time to its globally fudged time.
if ("_globally fudged time" not in snark):
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ in the ./share/ directory.
Changes

3.54 - Fixed crash when deleting fudges when there were 0 snarks.
Fixed mangling of snark times when applying a new global fudge.
3.53 - Added a GUI log window.
Fixed a crash when seeking to 0:00, before the first snark.
Fixed regressions that broke the GUI's config auto-saving.
Expand Down

0 comments on commit 32bfb52

Please sign in to comment.