Skip to content

Commit

Permalink
Merge pull request #1076 from hackforla/mattyweb/issue1074
Browse files Browse the repository at this point in the history
Mattyweb/issue1074
  • Loading branch information
mattyweb authored Apr 6, 2021
2 parents 019e9f1 + 30c4d29 commit b87c45f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/api/code/lacity_data_api/services/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ async def make_csv_cache(table: str):
"longitude",
"city_id"
]

query = db.text(f"""
SELECT * FROM {table}
""")
Expand Down
3 changes: 3 additions & 0 deletions server/api/code/lacity_data_api/services/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ async def build_cache():
for file in os.scandir(DATA_DIR):
os.remove(file.path)

import lacity_data_api.services.reports as rpts
await rpts.make_csv_cache("service_requests")

return {
"open_requests": len(open_requests),
"open_requests_counts": len(open_requests_counts),
Expand Down

0 comments on commit b87c45f

Please sign in to comment.