mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Fix administrate guild page crashing due to microseconds in user timestamps
This commit is contained in:
parent
0cfcb42ac4
commit
9e49ba558a
@ -231,7 +231,7 @@ def add_bot(guild_id):
|
|||||||
def prepare_guild_members_list(members, bans):
|
def prepare_guild_members_list(members, bans):
|
||||||
all_users = []
|
all_users = []
|
||||||
ip_pool = []
|
ip_pool = []
|
||||||
members = sorted(members, key=lambda k: datetime.datetime.strptime(str(k.last_timestamp.replace(tzinfo=None)), "%Y-%m-%d %H:%M:%S"), reverse=True)
|
members = sorted(members, key=lambda k: datetime.datetime.strptime(str(k.last_timestamp.replace(tzinfo=None, microsecond=0)), "%Y-%m-%d %H:%M:%S"), reverse=True)
|
||||||
for member in members:
|
for member in members:
|
||||||
user = {
|
user = {
|
||||||
"id": member.id,
|
"id": member.id,
|
||||||
|
Loading…
Reference in New Issue
Block a user