Merged in feature/level-file-upload (pull request #22)
Feature/level file upload Approved-by: Tiago Ribeiro
This commit is contained in:
13
.env
13
.env
@@ -1,13 +0,0 @@
|
|||||||
OPENAI_API_KEY=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
|
|
||||||
JWT_SECRET_KEY=6e9c124ba92e8814719dcb0f21200c8aa4d0f119a994ac5e06eb90a366c83ab2
|
|
||||||
JWT_TEST_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ0ZXN0In0.Emrs2D3BmMP4b3zMjw0fJTPeyMwWEBDbxx2vvaWguO0
|
|
||||||
GOOGLE_APPLICATION_CREDENTIALS=firebase-configs/storied-phalanx-349916.json
|
|
||||||
HEY_GEN_TOKEN=MjY4MDE0MjdjZmNhNDFmYTlhZGRkNmI3MGFlMzYwZDItMTY5NTExNzY3MA==
|
|
||||||
GPT_ZERO_API_KEY=0195b9bb24c5439899f71230809c74af
|
|
||||||
|
|
||||||
FIREBASE_SCRYPT_B64_SIGNER_KEY="qjo/b5U5oNxA8o+PHFMZx/ZfG8ZQ7688zYmwMOcfZvVjOM6aHe4Jf270xgyrVArqLIQwFi7VkFnbysBjueMbVw=="
|
|
||||||
FIREBASE_SCRYPT_B64_SALT_SEPARATOR="Bw=="
|
|
||||||
FIREBASE_SCRYPT_ROUNDS=8
|
|
||||||
FIREBASE_SCRYPT_MEM_COST=14
|
|
||||||
FIREBASE_PROJECT_ID=encoach-staging
|
|
||||||
FIREBASE_CLI_TOKEN="1//03QsSa_vSDOqoCgYIARAAGAMSNwF-L9IrA0nxAZtglYBbiYqnKB9dayShPlN6xMQVI4PALPGIwr8hSpcyRuaZL0dUH-Qa7pohefo"
|
|
||||||
@@ -6,8 +6,6 @@ FROM python:3.11-slim
|
|||||||
# Allow statements and log messages to immediately appear in the logs
|
# Allow statements and log messages to immediately appear in the logs
|
||||||
ENV PYTHONUNBUFFERED True
|
ENV PYTHONUNBUFFERED True
|
||||||
|
|
||||||
ENV GOOGLE_APPLICATION_CREDENTIALS=/app/firebase-configs/encoach-staging.json
|
|
||||||
|
|
||||||
# Copy local code to the container image.
|
# Copy local code to the container image.
|
||||||
ENV APP_HOME /app
|
ENV APP_HOME /app
|
||||||
WORKDIR $APP_HOME
|
WORKDIR $APP_HOME
|
||||||
|
|||||||
@@ -224,6 +224,17 @@ class BatchUsers:
|
|||||||
participants.append(user_id)
|
participants.append(user_id)
|
||||||
group.reference.update({'participants': participants})
|
group.reference.update({'participants': participants})
|
||||||
|
|
||||||
|
else:
|
||||||
|
group = {
|
||||||
|
'admin': corporate_user.id,
|
||||||
|
'id': str(uuid.uuid4()),
|
||||||
|
'name': group_type,
|
||||||
|
'participants': [user_id],
|
||||||
|
'disableEditing': True,
|
||||||
|
}
|
||||||
|
|
||||||
|
self._db.collection('groups').document(group['id']).set(group)
|
||||||
|
|
||||||
def _assign_user_to_group_by_name(self, user: UserDTO, maker_id: str):
|
def _assign_user_to_group_by_name(self, user: UserDTO, maker_id: str):
|
||||||
user_id = str(user.id)
|
user_id = str(user.id)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user