Divided admins and owner
This commit is contained in:
@@ -17,6 +17,8 @@ class PosterClient(Client):
|
||||
|
||||
def __init__(self, name: str, **kwargs): # type: ignore
|
||||
super().__init__(name, **kwargs)
|
||||
self.owner = configGet("owner")
|
||||
self.admins = configGet("admins")+[configGet("owner")]
|
||||
|
||||
async def submit_photo(self, id: str) -> Union[Message, None]:
|
||||
|
||||
@@ -40,7 +42,7 @@ class PosterClient(Client):
|
||||
|
||||
response = await upload_pic(str(filepath))
|
||||
|
||||
if response[0] is False:
|
||||
if len(response[1]) > 0:
|
||||
raise SubmissionDuplicatesError(str(filepath), response[1])
|
||||
|
||||
col_submitted.find_one_and_update({"_id": ObjectId(id)}, {"$set": {"done": True}})
|
||||
|
Reference in New Issue
Block a user