From 8d1f6f0ae28d210fe4398fc0d0782be74adb0bc0 Mon Sep 17 00:00:00 2001 From: Srijan Srivastava Date: Thu, 2 Jan 2025 18:59:54 +0530 Subject: [PATCH 1/4] Update .dockerignore --- .dockerignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.dockerignore b/.dockerignore index 4c49bd7..0311a10 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,2 @@ .env +!.git From cab6827d99f911fa5be5c2b368066cd12f057276 Mon Sep 17 00:00:00 2001 From: shreyash Date: Fri, 27 Jun 2025 09:57:41 +0530 Subject: [PATCH 2/4] 1. Added year param in fetching issues --- app.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 6cc73c5..7f099f7 100644 --- a/app.py +++ b/app.py @@ -90,9 +90,13 @@ async def get_issues(): type: string """ try: + # Get year from query parameters + year = request.args.get('year') + year = int(year) if year and year.isdigit() else None + # Fetch all issues with their details - print('inside get all issues') - data = await DmpAPIQueries.get_issue_query(async_session) + print(f'inside get all issues for year: {year}' if year else 'inside get all issues (all years)') + data = await DmpAPIQueries.get_issue_query(async_session, year=year) response = [] for result in data: From 66f16378b2558b2ed7856b6b6cad5b6ccc232843 Mon Sep 17 00:00:00 2001 From: shreyash Date: Mon, 30 Jun 2025 12:21:36 +0530 Subject: [PATCH 3/4] Removed submodule --- .gitmodules | 3 --- shared_migrations | 1 - 2 files changed, 4 deletions(-) delete mode 160000 shared_migrations diff --git a/.gitmodules b/.gitmodules index 3e0df8d..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "shared_migrations"] - path = shared_migrations - url = https://github.com/Code4GovTech/shared-models-migrations.git diff --git a/shared_migrations b/shared_migrations deleted file mode 160000 index ec465a2..0000000 --- a/shared_migrations +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ec465a29357edf78b2727d31e50a6f6d3b4d57dc From 21a0ec0b24b4338f9f66348b67405aee0ecfb798 Mon Sep 17 00:00:00 2001 From: shreyash Date: Mon, 30 Jun 2025 12:22:47 +0530 Subject: [PATCH 4/4] Readded submodule --- .gitmodules | 3 +++ shared_migrations | 1 + 2 files changed, 4 insertions(+) create mode 160000 shared_migrations diff --git a/.gitmodules b/.gitmodules index e69de29..3e0df8d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "shared_migrations"] + path = shared_migrations + url = https://github.com/Code4GovTech/shared-models-migrations.git diff --git a/shared_migrations b/shared_migrations new file mode 160000 index 0000000..f22bad9 --- /dev/null +++ b/shared_migrations @@ -0,0 +1 @@ +Subproject commit f22bad965438497715d4ac0959a135f5af161cf7