From 27a621dbec9ea36d4e8538234d1bf067977e1ff9 Mon Sep 17 00:00:00 2001 From: khushal Date: Thu, 28 Nov 2024 12:57:17 +0530 Subject: [PATCH] (20241128) Utils upgraded. --- api/blueprints/mail/callback.py | 2 +- playground/cwd_test.py | 5 +++++ playground/sub_ground/cwd_indirect_test.py | 8 ++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/api/blueprints/mail/callback.py b/api/blueprints/mail/callback.py index d8265fa..aa45995 100644 --- a/api/blueprints/mail/callback.py +++ b/api/blueprints/mail/callback.py @@ -156,7 +156,7 @@ async def mail_callback( if tokens: - # Add information and : + # Add information and: user_profile = await current_app.gmail_client.get_user_profile(tokens = tokens) tokens.email = user_profile.data["emailAddress"] if user_profile.success else None diff --git a/playground/cwd_test.py b/playground/cwd_test.py index e69de29..db36565 100644 --- a/playground/cwd_test.py +++ b/playground/cwd_test.py @@ -0,0 +1,5 @@ +from utils_v2.system import files +import os +print("CWD:", files.get_cwd()) +print("FDR:", files.get_file_directory()) + diff --git a/playground/sub_ground/cwd_indirect_test.py b/playground/sub_ground/cwd_indirect_test.py index e69de29..14d778b 100644 --- a/playground/sub_ground/cwd_indirect_test.py +++ b/playground/sub_ground/cwd_indirect_test.py @@ -0,0 +1,8 @@ +from playground import cwd_test +from utils_v2.system import files +import os +print("\n\n---\n\n") +print("SUB CWD:", files.get_cwd()) +print("SUB FDR:", files.get_file_directory()) +print("\n\n---\n\n") +print("PARENT:", files.get_parent_directory(files.get_file_directory()[1:], depth = 6))