Чё-то исправил
This commit is contained in:
parent
7bbca84d21
commit
845f014a8e
2 changed files with 238 additions and 223 deletions
13
.editorconfig
Normal file
13
.editorconfig
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Чтоб применить изменения в JetBrains, надо нажать "Code" -> "Reformat Code" (или Ctrl+Alt+L)
|
||||
|
||||
root = true # Главный конфиг. Если в другом каталоге будет другой, то применять этот
|
||||
|
||||
[*]
|
||||
charset = utf-8 # Кодировка ютф8
|
||||
indent_style = tab # Табуляция пробелами или табуляциями. "space" или "tab"
|
||||
#indent_size = 4 # Для пробелов
|
||||
tab_width = 4 # Для табов
|
||||
insert_final_newline = true # При сохранении файла в конце должна быть пустая строка
|
||||
trim_trailing_whitespace = true # При сохранении файла удалить все лишние пробелы в конце строк
|
||||
end_of_line = lf # Символ конца строки для linux. Этот символ говорит, когда перенос строки происходит
|
||||
#max_line_length = 100 # Форматирование этим параметром меняет файлы в гите. Включать там где надо, а не *
|
|
@ -194,6 +194,7 @@ class ChatDAO(BaseDAO):
|
|||
chats_with_descriptions.c.visibility,
|
||||
Users.id,
|
||||
Users.avatar_image,
|
||||
Users.avatar_hex,
|
||||
)
|
||||
.select_from(chats_with_descriptions)
|
||||
.join(Users, Users.id == chats_with_descriptions.c.user_id)
|
||||
|
@ -203,7 +204,8 @@ class ChatDAO(BaseDAO):
|
|||
chats_with_avatars.c.chat_id,
|
||||
chats_with_avatars.c.chat_for,
|
||||
chats_with_avatars.c.chat_name,
|
||||
chats_with_avatars.c.avatar_image
|
||||
chats_with_avatars.c.avatar_image,
|
||||
chats_with_avatars.c.avatar_hex,
|
||||
)
|
||||
.distinct()
|
||||
.select_from(PinnedChats)
|
||||
|
|
Loading…
Add table
Reference in a new issue