Logo
Explore Help
Sign In
darkhelm/notifications-admin
1
0
Fork 0
You've already forked notifications-admin
mirror of https://github.com/GSA/notifications-admin.git synced 2026-09-05 15:08:25 -04:00
Code Issues Packages Projects Releases Wiki Activity
Files
e0617004f5a9a835bce7d04f2a7d8df58c7e3321
notifications-admin/app/notify_client/letter_jobs_client.py

14 lines
310 B
Python
Raw Normal View History

Add letter jobs page, client and test
2017-04-11 10:59:50 +01:00
from app.notify_client import NotifyAdminAPIClient
class LetterJobsClient(NotifyAdminAPIClient):
Add a platform admin page to submit returned letter references A platform admin form accepts a list of references (one per line) received from DVLA and sends them to the API to update notification statuses. References we get from DVLA start with `NOTIFY00\d`, which isn't part of the reference we store in the database, so we remove them before sending the data to the API. The new `returned-letter` status should be treated as `delivered` for now until we decide a way to display returned letters to users.
2018-09-06 16:34:23 +01:00
def submit_returned_letters(self, references):
return self.post(
url='/letters/returned',
data={'references': references}
)
Initialise clients outside the app This avoids the annoying problem where you can’t import a client unless the app has already been initialised.
2018-10-26 15:39:32 +01:00
letter_jobs_client = LetterJobsClient()
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 400ms Template: 32ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API