From b6f45c8f05edbb27d2925cd86dcc1541bef40e41 Mon Sep 17 00:00:00 2001 From: AshirMehmood Date: Mon, 10 Jul 2023 20:46:20 +0500 Subject: [PATCH 1/4] remove bug at line#2903 --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index e56452df..99486258 100644 --- a/main.py +++ b/main.py @@ -2900,7 +2900,7 @@ def calculate_salary(base:int, ptax:int, deduction:int): try: - calculate_salary = functions.calculate_salary(base,jb,stock,pb,bonus,ptax,deduction): + calculate_salary = functions.calculate_salary(base,jb,stock,pb,bonus,ptax,deduction) return { "Tag":"Net Salary Calculator", From b6c0c0119fa2541ec0c314a3ea06c79fc8937e71 Mon Sep 17 00:00:00 2001 From: AshirMehmood Date: Mon, 10 Jul 2023 23:15:00 +0500 Subject: [PATCH 2/4] removed unclear text on line 1668,1693 and 1703 --- main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index cf9b463d..f1d93cf9 100644 --- a/main.py +++ b/main.py @@ -1665,7 +1665,7 @@ def calculate_expected_return_of_portfolio(no_of_investments: int, "/calculate_salary", tags=["calculate_salary"], description="Calculate Net annual salary of an employee", -<<<<<<< HEAD + ) def calculate_salary(base:int, jb:int, @@ -1690,8 +1690,7 @@ def calculate_salary(base:int, } except: return HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR) -======= -) + def calculate_salary(base: int, jb: int, stock: int, @@ -1700,7 +1699,6 @@ def calculate_salary(base: int, ptax: int, deduction: int): return calculate_salary_task(base, jb, stock, pb, bonus, ptax, deduction) ->>>>>>> 9378a9693d83ad3ee0f6894332ad225cca633534 @app.get( From 2543c6ffa0bcf674a98aaeb05acc424184da91c1 Mon Sep 17 00:00:00 2001 From: AshirMehmood Date: Mon, 10 Jul 2023 23:25:37 +0500 Subject: [PATCH 3/4] completed issue #421 --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index f1d93cf9..7bb48c81 100644 --- a/main.py +++ b/main.py @@ -131,7 +131,7 @@ from tasks.profit_percentage import profit_percentage_task from tasks.loss_percentage import loss_percentage_task from tasks.defensive_interval_ratio import defensive_interval_ratio_task -from validators.request_validators import SimpleInterestRateRequest, calculatePension, compoundInterest, futureSip, paybackPeriod, capmRequest, DebtServiceCoverageRatio, futureValueOfAnnuity, ProfitPercentage, LossPercentage, DefensiveIntervalRatio, +from validators.request_validators import SimpleInterestRateRequest, calculatePension, compoundInterest, futureSip, paybackPeriod, capmRequest, DebtServiceCoverageRatio, futureValueOfAnnuity, ProfitPercentage, LossPercentage, DefensiveIntervalRatio # Creating the app app = FastAPI( From edb74180d3c2c0f2710d19c85c40a53589ca07a0 Mon Sep 17 00:00:00 2001 From: AshirMehmood Date: Mon, 10 Jul 2023 23:36:52 +0500 Subject: [PATCH 4/4] typo fix in readme.md --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 56f0e249..83da925c 100644 --- a/Readme.md +++ b/Readme.md @@ -22,7 +22,7 @@ Welcome to FinTech API, our powerful API is designed to simplify your life by of ## ✨ Features -- **Modular structure**: Not the API has a clean structure which benifits in improved code organizationqn and enhanced reusability of components +- **Modular structure**: Not the API has a clean structure which benefits in improved code organization and enhanced reusability of components - **Request validation**: It improves security, prevents errors and vulnerabilities to the API