From ae2a0bafbef8f55b94043d511f3b15959a50e553 Mon Sep 17 00:00:00 2001 From: FunctionsAPI Date: Thu, 22 May 2025 09:54:01 +0000 Subject: [PATCH] Automatic push from FunctionsAPI --- README.md | 2 +- __MACOSX/.____init___.py | Bin 0 -> 175 bytes __MACOSX/._main.py | Bin 0 -> 175 bytes main.py | 13 +++++++++++++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 __MACOSX/.____init___.py create mode 100644 __MACOSX/._main.py create mode 100644 main.py diff --git a/README.md b/README.md index 71bd1df..65bdc30 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# b159680ec0e94ec189e4823404adc1ef +# ecf1b99186d449af8485d8e493de5f44 diff --git a/__MACOSX/.____init___.py b/__MACOSX/.____init___.py new file mode 100644 index 0000000000000000000000000000000000000000..6fe380f75c189bd47ddc3d2a78b76a4495ed1812 GIT binary patch literal 175 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDI}aV-#o`0PMT1aJ%q34$tv=@3WL#t7vD y#YL0zbM+Dn3UX5Q3QH4<67xzj^HLcK^$iRxjI7Npj8fB#%`L2ha}txYtr-AnX%n;n literal 0 HcmV?d00001 diff --git a/__MACOSX/._main.py b/__MACOSX/._main.py new file mode 100644 index 0000000000000000000000000000000000000000..6fe380f75c189bd47ddc3d2a78b76a4495ed1812 GIT binary patch literal 175 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDI}aV-#o`0PMT1aJ%q34$tv=@3WL#t7vD y#YL0zbM+Dn3UX5Q3QH4<67xzj^HLcK^$iRxjI7Npj8fB#%`L2ha}txYtr-AnX%n;n literal 0 HcmV?d00001 diff --git a/main.py b/main.py new file mode 100644 index 0000000..c791e5b --- /dev/null +++ b/main.py @@ -0,0 +1,13 @@ +import logging + +# Configure the logging +logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') + + +def main(request): + logging.info(f"Function called with request: {request}") + + data = request.get_json(force=True) + + logging.info(f"Received data: {data}") + return {"result": data.get("a", 0)+data.get("b", 0)} \ No newline at end of file