Skip to content

Commit

Permalink
[#404] Cleanup file
Browse files Browse the repository at this point in the history
  • Loading branch information
wayangalihpratama committed Jan 30, 2025
1 parent f2ff37e commit 89fc9b4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 85 deletions.
37 changes: 0 additions & 37 deletions backend/db/crud_view_case_count_by_country_company.py

This file was deleted.

47 changes: 0 additions & 47 deletions backend/models/view_case_count_by_country_company.py

This file was deleted.

9 changes: 8 additions & 1 deletion backend/routes/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from fastapi.security import HTTPBearer, HTTPBasicCredentials as credentials
from sqlalchemy.orm import Session
from typing import List
from typing_extensions import TypedDict

from db.connection import get_session
from models.view_case_count_by_country_company import CaseCountByCountryDict
from middleware import verify_user
from models.user import UserRole

Expand All @@ -21,6 +21,13 @@
MASTER_DIR = BASE_DIR + "/source/master/"


class CaseCountByCountryDict(TypedDict):
country_id: int
COUNTRY: str
case_count: int
total_farmers: int


@map_route.get(
"/map/static/world_map.js",
tags=["Map"],
Expand Down

0 comments on commit 89fc9b4

Please # to comment.