mirror of https://github.com/zulip/zulip.git
zerver/lib/digest.py: Fix a type annotation.
This commit is contained in:
parent
d92368e0f5
commit
ccce3ec0be
|
@ -157,7 +157,7 @@ def send_digest_email(user_profile, html_content, text_content):
|
|||
tags=["digest-emails"])
|
||||
|
||||
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)
|
||||
# Convert from epoch seconds to a datetime object.
|
||||
cutoff_date = datetime.datetime.utcfromtimestamp(int(cutoff))
|
||||
|
|
Loading…
Reference in New Issue