Emmanuel Frimpong Asante commited on
Commit
a7e3aed
·
1 Parent(s): c426d4b

update space

Browse files
Files changed (3) hide show
  1. .idea/workspace.xml +19 -20
  2. README.md +4 -4
  3. app.py +7 -7
.idea/workspace.xml CHANGED
@@ -5,8 +5,7 @@
5
  </component>
6
  <component name="ChangeListManager">
7
  <list default="true" id="27c9ae1a-a6fa-4472-8bcd-a7087620894b" name="Changes" comment="update space">
8
- <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/routes/authentication.py" beforeDir="false" afterPath="$PROJECT_DIR$/routes/authentication.py" afterDir="false" />
10
  </list>
11
  <option name="SHOW_DIALOG" value="false" />
12
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -120,23 +119,7 @@
120
  <workItem from="1730305361670" duration="2425000" />
121
  <workItem from="1730378091154" duration="2435000" />
122
  <workItem from="1730381153348" duration="8786000" />
123
- <workItem from="1730397485849" duration="7281000" />
124
- </task>
125
- <task id="LOCAL-00031" summary="update space">
126
- <option name="closed" value="true" />
127
- <created>1730354726849</created>
128
- <option name="number" value="00031" />
129
- <option name="presentableId" value="LOCAL-00031" />
130
- <option name="project" value="LOCAL" />
131
- <updated>1730354726849</updated>
132
- </task>
133
- <task id="LOCAL-00032" summary="update space">
134
- <option name="closed" value="true" />
135
- <created>1730355214174</created>
136
- <option name="number" value="00032" />
137
- <option name="presentableId" value="LOCAL-00032" />
138
- <option name="project" value="LOCAL" />
139
- <updated>1730355214174</updated>
140
  </task>
141
  <task id="LOCAL-00033" summary="update space">
142
  <option name="closed" value="true" />
@@ -514,7 +497,23 @@
514
  <option name="project" value="LOCAL" />
515
  <updated>1730403550085</updated>
516
  </task>
517
- <option name="localTasksCounter" value="80" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
518
  <servers />
519
  </component>
520
  <component name="TypeScriptGeneratedFilesManager">
 
5
  </component>
6
  <component name="ChangeListManager">
7
  <list default="true" id="27c9ae1a-a6fa-4472-8bcd-a7087620894b" name="Changes" comment="update space">
8
+ <change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
 
9
  </list>
10
  <option name="SHOW_DIALOG" value="false" />
11
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
 
119
  <workItem from="1730305361670" duration="2425000" />
120
  <workItem from="1730378091154" duration="2435000" />
121
  <workItem from="1730381153348" duration="8786000" />
122
+ <workItem from="1730397485849" duration="8040000" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  </task>
124
  <task id="LOCAL-00033" summary="update space">
125
  <option name="closed" value="true" />
 
497
  <option name="project" value="LOCAL" />
498
  <updated>1730403550085</updated>
499
  </task>
500
+ <task id="LOCAL-00080" summary="update space">
501
+ <option name="closed" value="true" />
502
+ <created>1730409181702</created>
503
+ <option name="number" value="00080" />
504
+ <option name="presentableId" value="LOCAL-00080" />
505
+ <option name="project" value="LOCAL" />
506
+ <updated>1730409181702</updated>
507
+ </task>
508
+ <task id="LOCAL-00081" summary="update space">
509
+ <option name="closed" value="true" />
510
+ <created>1730409232117</created>
511
+ <option name="number" value="00081" />
512
+ <option name="presentableId" value="LOCAL-00081" />
513
+ <option name="project" value="LOCAL" />
514
+ <updated>1730409232117</updated>
515
+ </task>
516
+ <option name="localTasksCounter" value="82" />
517
  <servers />
518
  </component>
519
  <component name="TypeScriptGeneratedFilesManager">
README.md CHANGED
@@ -73,10 +73,10 @@ This project combines a **Poultry Farming Assistance System** and a **Poultry Ma
73
  - [x] Develop an **AdminLTE 4**-based UI for managing tasks.
74
 
75
  ### 5. Data Logging and Reporting
76
- - [ ] Implement data logging for activities and health records.
77
- - [ ] Build reporting dashboards using **AdminLTE**.
78
- - [ ] Enable export functionality (PDF, XLS).
79
- - [ ] Integrate real-time visualization tools for health and productivity insights.
80
 
81
  ### 6. Health Management
82
  - [ ] Define MongoDB schema for health records.
 
73
  - [x] Develop an **AdminLTE 4**-based UI for managing tasks.
74
 
75
  ### 5. Data Logging and Reporting
76
+ - [x] Implement data logging for activities and health records.
77
+ - [x] Build reporting dashboards using **AdminLTE**.
78
+ - [x] Enable export functionality (PDF, XLS).
79
+ - [x] Integrate real-time visualization tools for health and productivity insights.
80
 
81
  ### 6. Health Management
82
  - [ ] Define MongoDB schema for health records.
app.py CHANGED
@@ -55,13 +55,13 @@ async def landing_page(request: Request, current_user: Optional[str] = Depends(o
55
  """
56
  Render the landing page if not logged in, otherwise redirect to the appropriate dashboard based on user role.
57
  """
58
- if current_user:
59
- user_data = db.get_collection("users").find_one({"username": current_user})
60
- if user_data:
61
- user_role = user_data.get("role", "farmer")
62
- redirect_url = "/admin/dashboard"
63
- logger.info(f"Redirecting {current_user} to {redirect_url}")
64
- return RedirectResponse(url=redirect_url)
65
  return templates.TemplateResponse("landing.html", {"request": request})
66
 
67
  # Health metrics for periodic monitoring
 
55
  """
56
  Render the landing page if not logged in, otherwise redirect to the appropriate dashboard based on user role.
57
  """
58
+ # if current_user:
59
+ # user_data = db.get_collection("users").find_one({"username": current_user})
60
+ # if user_data:
61
+ # user_role = user_data.get("role", "farmer")
62
+ # redirect_url = "/admin/dashboard"
63
+ # logger.info(f"Redirecting {current_user} to {redirect_url}")
64
+ # return RedirectResponse(url=redirect_url)
65
  return templates.TemplateResponse("landing.html", {"request": request})
66
 
67
  # Health metrics for periodic monitoring