uploads: Make realm_avatar_and_logo_path non-abstract.

This commit is contained in:
Alex Vandiver
2022-12-12 20:34:59 +00:00
committed by Alex Vandiver
parent 8e68d68f32
commit 43fe24a5a0
3 changed files with 2 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
import io
import os
import re
import unicodedata
from typing import IO, Any, Callable, Optional, Tuple
@@ -257,7 +258,7 @@ class ZulipUploadBackend:
raise NotImplementedError()
def realm_avatar_and_logo_path(self, realm: Realm) -> str:
raise NotImplementedError()
return os.path.join(str(realm.id), "realm")
def create_attachment(