Fix Polls limiting duration at 7 days

This commit is contained in:
DA344 authored and GitHub committed 2024-07-21 19:15:38 -04:00
1 parent 04b2e494f7
commit ff638d393d
1 file changed
-3
-3
View File
@@ -388,9 +388,6 @@ class Poll:
# self.created_at = message.created_at
# duration = self.created_at - expiry
if (duration.total_seconds() / 3600) > 168: # As the duration may exceed little milliseconds then we fix it
duration = datetime.timedelta(days=7)
self = cls(
duration=duration,
multiple=multiselect,