mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
python: Prevent bare timedelta(), which defaults to days.
This commit is contained in:
committed by
Tim Abbott
parent
0f132cef4d
commit
82c08dd153
@@ -1709,7 +1709,7 @@ Output:
|
||||
|
||||
def set_age(user_name: str, age: int) -> None:
|
||||
user = self.example_user(user_name)
|
||||
user.date_joined = timezone_now() - timedelta(age)
|
||||
user.date_joined = timezone_now() - timedelta(days=age)
|
||||
user.save()
|
||||
|
||||
do_set_realm_property(realm, "waiting_period_threshold", 1000, acting_user=None)
|
||||
|
||||
Reference in New Issue
Block a user