diff options
| author | bwarsaw | 2002-10-18 15:46:45 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-10-18 15:46:45 +0000 |
| commit | 0c20aa8645ce75063b25f835841f308a8175a7da (patch) | |
| tree | fe7145c82e0df80d4291255a2c355da5fa173035 /Mailman/Handlers/ToDigest.py | |
| parent | 02f3cb13e0c88694a89f57b7f68966820e7c98e9 (diff) | |
| download | mailman-0c20aa8645ce75063b25f835841f308a8175a7da.tar.gz mailman-0c20aa8645ce75063b25f835841f308a8175a7da.tar.zst mailman-0c20aa8645ce75063b25f835841f308a8175a7da.zip | |
Diffstat (limited to 'Mailman/Handlers/ToDigest.py')
| -rw-r--r-- | Mailman/Handlers/ToDigest.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Mailman/Handlers/ToDigest.py b/Mailman/Handlers/ToDigest.py index b93efe7a5..d735cd690 100644 --- a/Mailman/Handlers/ToDigest.py +++ b/Mailman/Handlers/ToDigest.py @@ -99,7 +99,8 @@ def send_digests(mlist, mboxfp): now = time.localtime(time.time()) freq = mlist.digest_volume_frequency if freq == 0 and timetup[0] < now[0]: - bump = 1 # Yearly + # Yearly + bump = 1 elif freq == 1 and timetup[1] <> now[1]: # Monthly, but we take a cheap way to calculate this. We assume # that the clock isn't going to be reset backwards. @@ -113,12 +114,11 @@ def send_digests(mlist, mboxfp): weeknum_now = int(time.strftime('%W', now)) if weeknum_now > weeknum_last or timetup[0] > now[0]: bump = 1 - elif timetup[7] <> now[7]: - # assume daily + elif freq == 4 and timetup[7] <> now[7]: + # Daily bump = 1 if bump: - mlist.volume += 1 - mlist.next_digest_number = 1 + mlist.bump_digest_volume() mlist.digest_last_sent_at = time.time() # Wrapper around actually digest crafter to set up the language context # properly. All digests are translated to the list's preferred language. |
