mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 11:53:49 +01:00
pep8
This commit is contained in:
parent
937c407eef
commit
60f86fc876
2 changed files with 6 additions and 3 deletions
|
@ -283,7 +283,8 @@ class Mailer(object):
|
|||
|
||||
return MESSAGES_FROM_PERSON % (
|
||||
descriptor_from_member_events([
|
||||
state_by_room[room_id][("m.room.member", s)] for s in sender_ids
|
||||
state_by_room[room_id][("m.room.member", s)]
|
||||
for s in sender_ids
|
||||
])
|
||||
)
|
||||
else:
|
||||
|
@ -346,11 +347,13 @@ def deduped_ordered_list(l):
|
|||
ret.append(item)
|
||||
return ret
|
||||
|
||||
|
||||
def string_ordinal_total(s):
|
||||
tot = 0
|
||||
for c in s:
|
||||
tot += ord(c)
|
||||
return tot
|
||||
|
||||
|
||||
def format_ts_filter(value, format):
|
||||
return time.strftime(format, time.localtime(value / 1000))
|
||||
|
|
Loading…
Reference in a new issue