mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 19:03:30 -05:00
Because we won’t be showing uploaded letters individually on the uploads page any more we need a way of listing them. This should be by printing day, to match how we’re grouping them on the uploads page. This code reuses the notifications.html template, but flips the precedence of the filename and recipient because I reckon when you’re looking at uploads you’re thinking filename-first.
19 lines
410 B
Python
19 lines
410 B
Python
from app.notify_client import NotifyAdminAPIClient
|
|
|
|
|
|
class UploadApiClient(NotifyAdminAPIClient):
|
|
|
|
def get_letters_by_service_and_print_day(
|
|
self,
|
|
service_id,
|
|
*,
|
|
letter_print_day,
|
|
page=1,
|
|
):
|
|
return self.get(
|
|
url=f'/service/{service_id}/upload/uploaded-letters/{letter_print_day}?page={page}'
|
|
)
|
|
|
|
|
|
upload_api_client = UploadApiClient()
|