zerver/lib/digest.py: Fix a type annotation.

This commit is contained in:
Eklavya Sharma 2016-10-11 17:50:05 +05:30 committed by Tim Abbott
parent d92368e0f5
commit ccce3ec0be
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ def send_digest_email(user_profile, html_content, text_content):
tags=["digest-emails"]) tags=["digest-emails"])
def handle_digest_email(user_profile_id, cutoff): def handle_digest_email(user_profile_id, cutoff):
# type: (int, int) -> None # type: (int, float) -> None
user_profile=UserProfile.objects.get(id=user_profile_id) user_profile=UserProfile.objects.get(id=user_profile_id)
# Convert from epoch seconds to a datetime object. # Convert from epoch seconds to a datetime object.
cutoff_date = datetime.datetime.utcfromtimestamp(int(cutoff)) cutoff_date = datetime.datetime.utcfromtimestamp(int(cutoff))